Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!bloom-beacon!apple!voder!wlbr!mh From: mh@wlbr.EATON.COM (Mike Hoegeman) Newsgroups: comp.windows.news Subject: Re: Class vars or Instance vars, conclusion Message-ID: <28405@wlbr.EATON.COM> Date: 26 Mar 89 21:47:46 GMT References: <102*knut-skog@rglab.uit.uninett> Reply-To: mh@wlbr.eaton.com.UUCP (Mike Hoegeman) Organization: Eaton IMSD, Westlake Village, CA Lines: 29 In article <102*knut-skog@rglab.uit.uninett> knut-skog%rglab.uit.uninett@NORUNIX.BITNET (Knut Skog) writes: > >My comments on this issue may have propagated some of >my own confution. My current understanding is >that the values of composite instance variables are >shared dispite being an "instance". > Just as an added note to this discussion, to make a non shared composite instance variable for an object class just create it in the objects "/new" method like this /MyClass ParentObject dictbegin % instance vars... % normally you would put MyNonSharedArrayInstanceVariable here dictend classbegin /new { /new super send begin % we are the instance at this point... /MyNonSharedArrayInstanceVariable [ 1 2 3 4 (five) (six) currenttime /whatever ] def currentdict end } def classend def -mike