blake at mcbride.name
Wed Mar 10 19:19:01 UTC 2010
Yes, there is in CLOS. One would use meta-classes for that.
Unfortunately, ABCL does not currently (correctly) support
metaclasses. Erik is working on that, partially for the exact
use-case you describe.
On Wed, Mar 10, 2010 at 11:43 AM, Alan Ruttenberg
<alanruttenberg at gmail.com> wrote:
> Thanks for adding class-prototype. Unfortunately I realize that the
> specification doesn't guarantee the behavior I was looking for, so I
> though I would solicit advise.
> Basically I want to be able to access class-allocated slot values
> before I create any real instances. I thought I could grab the class
> prototype and do slot value on them, but according to the doc below
> initialize is not called, which I guess is when class-allocated slots
> are being set up.
> Is there a portable way of asking for the values of class slots absent
> the creation of at least one initialized instance?
> Generic Function class-prototype class
> Returns a prototype instance of class. Whether the instance is
> initialized is not specified. The results are undefined if a portable
> program modifies the binding of any slot of prototype instance.
> This generic function signals an error if class has not been finalized.
> armedbear-devel mailing list
> armedbear-devel at common-lisp.net
More information about the armedbear-devel