[rucksack-devel] Error when deleting indexed objects

Arthur Lemmens alemmens at xs4all.nl
Tue Jan 22 16:14:33 UTC 2008


Brad Beveridge wrote:

>     (rucksack-map-slot rs 'broken 'string-key
> 		       (lambda (obj)
> 			 (rucksack::rucksack-delete-object rs obj))
> 		       :equal "foo1")

I forgot to mention that this way of deleting an object is a bad
idea: you're traversing a data structure (the slot index) and
modifying it (by deleting the object) at the same time.

Arthur




More information about the rucksack-devel mailing list