On Wed, Mar 25, 2009 at 4:00 PM, James French <James.French / naturalmotion.com> wrote: > Morning all, > > @dependencies.freeze > @dependencies += ["blah", "blah"] > > does not error out due to modifying a frozen array (1.8.7 p72). > [...] += creates a new array and assigns it to @dependencies. The original array remains frozen but @dependencies no longer refers to it. To illustrate: $: irb 01> a = b = [1, 2] --> [1, 2] 02> a.freeze --> [1, 2] 03> b.frozen? --> true 04> b += [3, 4] --> [1, 2, 3, 4] 05> a.frozen? --> true solidarity, lasitha