[rucksack-devel] Et tu, prevalence?

Arthur Lemmens alemmens at xs4all.nl
Fri May 19 14:54:34 UTC 2006


Nikodemus wrote:

> What issues do you see with having both kinds in a single rucksack? (I
> assume shared object-id's would create problems, but I'm not sure.)

I feel uneasy about references between prevalent and persistent objects,
for one thing.

Another thing is: if you just specify a :prevalent flag when creating a
rucksack and can't have both kinds in one rucksack, you wouldn't even
need to make separate classes for prevalent objects; instances of
persistent-object could just be treated differently for prevalent
rucksacks.  So you wouldn't have to have separate
(defclass foo () () (:metaclass persistent-class) and
(defclass bar () () (:metaclass prevalent-class) definitions in your
program.  And you wouldn't need to change from one to the other when
you decide to change from persistence to prevalence or vice versa.

The third thing is: I don't see a good reason for wanting to have both
kinds of objects in the same rucksack.

I have no intentions of actually writing this prevalent variant, by the
way.  But I think it would be a useful addition to Rucksack and if you
feel like writing it, I'd be happy to integrate it.

Arthur




More information about the rucksack-devel mailing list