From: Johann Hibschman Date: 2001-04-28T08:40:04+09:00 Subject: [ruby-talk:14358] Re: Immutable Arrays? In article <3AE9B04C.A4BD2384@hurstlinks.com>, Guy N. Hurst wrote: > a = [2,3,4] # array > a.freeze # now immutable > a[1] = 0 # TypeError: can't modify frozen array Thanks. Would there be anything obviously wrong with: class Tuple < Array def initialize (values) replace values freeze end end as a "freezer" object? Or is this just getting silly? --Johann