[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

default values of flavor instance vars



    Date: Thu, 23 Feb 89 12:57 PST
    From: Martin@ai-sun.jpl.nasa.gov (Gaius Martin)

    Given this form:

    (defflavor foo
	    ((a 1)
	     (b 2)
	     (c 3))
	    ()
      :initable-instance-variables
      :writable-instance-variables
      :abstract-flavor)

    Is there a way to programmatically determine
    the default values for the instance variables of foo?

    Thanks in advance,

    Gaius

By using the undocumented, internal function
FLAVOR::FLAVOR-LOCAL-INSTANCE-VARIABLE-INITIALIZATIONS.  This returns a
list of the form ((A 1) (B 2) (C 3)).  The list will leave out any
instance variables that don't have default initial values.  It also only
lists the local instance variables, not any inherited ones.

                                                barmar