[Cl-perec-devel] mapping for set
Levente Mészáros
levente.meszaros at gmail.com
Tue Dec 1 17:26:38 UTC 2009
On Tue, Dec 1, 2009 at 3:11 PM, Leonid Novikov <novikov.leon at gmail.com> wrote:
> I worked with hu.dwim.perec (live repo from 04.11.2009) and collided
> with the following behavior:
>
> HOME> (defpclass* test1 () ((c1 :type string)))
> #<PERSISTENT-CLASS TEST1>
> HOME> (hu.dwim.perec::mapping-of (nth 4 (class-slots (find-class 'test1))))
> #<HU.DWIM.PEREC::MAPPING {10872E01}>
> HOME> (defpclass* test2 () ((c2 :type (set test1))))
> #<PERSISTENT-CLASS TEST2>
> HOME> (hu.dwim.perec::mapping-of (nth 4 (class-slots (find-class 'test2))))
> NIL
>
> This is correct?
This is not correct, but this is the expected behavior. There are a
couple of failed test cases when a slot's type is a set. We actually
never use this feature, because it does not provide navigation from
the other direction.
You supposed to use associations instead, btw do you have any
particular reason not to?
Cheers,
levy
--
There's no perfectoin
More information about the cl-perec-devel
mailing list