Hello,

Paul Brannan <paul / atdesk.com> wrote:
> On Sat, Feb 23, 2002 at 03:41:03PM +0900, Michal Rokos wrote:
>>       Paul: Do you think that there is no need for method like
>>       "deep_freeze"? (I don't care about name - you know what it
>>       should do.)
> 
> I think there is some use for such a method, but I'm not sure how it
> should work.  Consider:

	I just thought about:
------------------------------------------
irb(main):001:0> a = ["aaa", "bbb", "ccc"]
["aaa", "bbb", "ccc"]
irb(main):002:0> a.freeze
["aaa", "bbb", "ccc"]
irb(main):003:0> a.frozen?
true
irb(main):004:0> a[0]
"aaa"
irb(main):005:0> a[0].frozen?
false
------------------------------------------

	But I would expect "true" as a result 'a[0].frozen?'

		Michal

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                           Czech Technical University, Prague
E-mail: m.rokos / sh.cvut.cz         Jabber: majkl / jabber.cz, ICQ: 36118339
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-