From: Gavin Sinclair Date: 2003-12-14T20:48:33+09:00 Subject: Re: inplace assignment On Sunday, December 14, 2003, 5:50:54 PM, Hal wrote: >> >> Array#replace isn't concerned with constants. >> >> A = [1] >> A.replace([2]) >> p A[0] # => 2 > Thanks for pointing this out. I don't think I ever noticed that. > Should this give an error? That's what #freeze is for. Gavin