From: Dossy Date: 2002-06-05T04:39:27+09:00 Subject: Re: When should actually freeze work ? On 2002.06.05, Kent Dahl wrote: > Philip Mateescu wrote: > > I have the following cases where I thought freeze should work. It doesn't, > > and I have no clue as to why... (in all cases assignment seems to cancel the > > values). > > Common newbie misunderstanding. Please remember that all variables are > simply references to objects. Freeze applies to the objects themselves. > Assignment makes a variable refer to a different object, which does not > affect the frozen object. Really? I thought assignment was shallow copy (both variables refer to the same object) while sending #dup to an object caused a deep copy, whereby the variable would refer to a new, different object. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)