[elephant-devel] make-instance with :from-oid
Alex Mizrahi
killerstorm at newmail.ru
Wed Feb 24 15:38:57 UTC 2010
LG> So when I use an oid that stores an object that is not of the given
class, there is no error thrown or no warning.
LG> Is there any possibility to be sure that the given oid stores an object
of the given class?
You shouldn't use make-instance with :from-oid initarg to recreate
instances -- it won't work correctly.
Use controller-recreate-instance function. It needs only oid and finds class
automatically, so you just won't have problems with mismatches.
More information about the elephant-devel
mailing list