[rucksack-devel] indexing issue?

Cyrus Harmon ch-rucksack at bobobeach.com
Wed Jan 10 07:43:30 UTC 2007


On Nov 30, 2006, at 10:43 AM, Arthur Lemmens wrote:

> Cyrus Harmon wrote:
>
>> What is the intended behavior of a unique slot?
>
> If a class has a unique slot, you (the programmer) promise that there
> won't be two instances of that class which have a 'similar' value
> for that slot.  The definition of 'similar' depends on the kind of
> index you create (see the predefined index specs in index.lisp for
> some examples).
>
>> I'm able to make-instance new instances of a persistent class with
>> a duplicate slot value
>
> Yes, I think that Rucksack doesn't check for this at the moment.
> But it should have signalled an error, I think.
>
>> which seems fine
>
> I don't think so ;-)

[some months pass...] so, yes, it seems like this should signal an  
error. and it looks like there's code in there to do that, but yet it  
doesn't seem to signal an error. Any idea why not?

Thanks,

Cyrus




More information about the rucksack-devel mailing list