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

Re: Accessor names for flavor instance variables



    Date: Fri, 2 Jun 89 11:15 PDT
    From: Bagley.PA@xerox.com

	Date: Fri, 2 Jun 89 11:24 EDT
	From: barmar@Think.COM (Barry Margolin)

	There doesn't seem to be a way to get what you want automatically.
	...

    Actually, there is: list the instance variables of the component flavors
    in the defflavor.

    (defflavor g
      (a b c d)
      (f)
      :readable-instance-variables)

    Now, (g-a foo) works.

I don't consider that "automatic".  You had to manually duplicate the
instance variables, and if F is ever changed you'll have to change G
correspondingly.

                                                barmar