From: Bil Kleb Date: 2006-10-18T02:45:09+09:00 Subject: Re: dynamically assigning instance variables (redux) Phrogz wrote: > I have no idea what Mr. > Kleb wanted, but given that he's adding accessors based on hashes > passed to each instance, my guess was that he would want a unique set > per instance. > > f1 = Foo.new :name=>'whee' > f2 = Foo.new :age=>12 > p f1.age > #=> nil > > Is the above result desirable, Bill? I don't know about Mr. Kleb and Bill, but as far as Bil's concerned, that's precisely what I'm after (although I didn't understand this subtlety when I originally asked). Regards, -- Bil Kleb, PhD, MBA http://fun3d.larc.nasa.gov