[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:24 EDT
    From: barmar@Think.COM (Barry Margolin)

	Date: Fri, 2 Jun 89 07:24:09 mdt
	From: intvax!drstrip@unmvax.cs.unm.edu

	Consider the following two (trivial) flavors:

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

	(defflavor g
	   (d)
	   (f))

	I would like the accessor functions for the instance
	variables of g to be g-a, g-b, ... Unfortunately, it seems
	that the accessor function name is based on the accessor
	name of the mixin.

    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.

--Steve
-------