On 5/17/07, Robert Dober <robert.dober / gmail.com> wrote:
> On 5/17/07, Ball, Donald A Jr (Library) <donald.ball / nashville.gov> wrote:

> > 3. I had vaguely thought that the default freeze implementation would
> > freeze all instance variables, but it does not. Is this a good way to
> > implement freeze? (with the exception of the incorrect return value?)
> No that is not a good way I am afraid. Please note that one cannot
> freeze instant variables - I have a reason to be picky here, I believe
> - but the objects they are referring to.
> Do you see the implications of a "deep" freeze now? The whole program
> will probably get cold feet ;) as objects just referenced in our
> object would be frozen.

This analogy remind's me of ice-9 in Kurt Vonnegut's "Cat's Cradle."

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/