[comp.lang.lisp.franz] Flavors

friedman@porthos.rutgers.edu (Gadi ) (10/19/88)

I am working on a program in Franz (Allogro) CommonLisp
using Flavors.  I would like to be able to copy an instance
of a flavor.  I would like the initial values to be the same,
but would like to be able to change the values in one without
affecting the other.  Something like

(setq a (make-instance 'flavor :x 10 :y 20))
(setq b (send a :copy))     or     (copy-flavor a)
(send b :set-x 5)
(describe a)
x:10   y:20
(describe b)
x:5    y:20

I can't figure out how to write this copy function.
The flavor may be a member of many super-flavors.

                  Gadi

PS. Please respond to me via email
-- 


uucp:   {ames, cbosgd, harvard, moss}!rutgers!aramis.rutgers.edu!friedman
arpa:   FRIEDMAN@ARAMIS.RUTGERS.EDU