[elephant-devel] make-instance with :from-oid

Lukas Gießmann lukas.giessmann at hotmail.de
Wed Feb 24 16:05:12 UTC 2010


fantastic, this was exactly what I was looking for.


thanks lukas



--------------------------------------------------
From: "Alex Mizrahi" <killerstorm at newmail.ru>
Sent: Wednesday, February 24, 2010 4:38 PM
To: <elephant-devel at common-lisp.net>
Subject: Re: [elephant-devel] make-instance with :from-oid

> 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.
>
>
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel
> 




More information about the elephant-devel mailing list