[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Given this form:
Is there a way to programmatically determine
the default values for the instance variables of foo?
(third (multiple-value-bind (ignore l ignore)
(COLLECT-FLAVOR-INITIALIZATIONS 'my-foo 'c)
This is the only way I know to discover the initializations which are
not local to the flavor. Also remember that the initializations are in
general, forms. The system treats constants a little differently than
it treats forms, but COLLECT-FLAVOR-INITIALIZATIONS finds them all. If
you want to know the value of an initialization, you'll have to eval it,
just like Make-instance does (in a null context).
-- Paul Vaughan