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

Re: 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

well, if you want an UNDOCUMENTED LIKELY TO CHANGE way to do it, do
(describe (flavor:find-flavor 'foo)) and you will be enlightened.

I don't know of a documented way to do this, efficiently, the inefficient
(legal) way would be to cons up an instance and look at what the vars are
bound to, of course.
----
Brad Miller		U. Rochester Comp Sci Dept.
miller@cs.rochester.edu {...allegra!rochester!miller}