Subject: Re: Need Help !!. (common-lisp CLOS)
From: (Rob Warnock)
Date: 8 Jul 2002 20:58:38 GMT
Newsgroups: comp.lang.lisp
Message-ID: <agcudu$7475a$>
Kenny Tilton  <> wrote:
| Sekkat Samir wrote:
| > AFAIK CLOS do not keep book of all created instances of a specific
| > class.
| Welll, it must because make-instances-obsolete has to call
| update-instance-for-redefined-class on each instance.

Actually, I don't think it does. CLOS (quite deliberately!) allows
lazy updating of instances when a class changes, so that a given
instance doesn't have to be updated until the next time it's accessed,
whereupon *it* could check to see if its parent class had changed and
then (and only then) perform the update. But that doesn't require a
collection of instances, only back-pointers from instances to classes
(which are required anyway).


Rob Warnock, 30-3-510		<>
SGI Network Engineering		<>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA

[Note: and aren't for humans ]