2009/7/10 Gary Wright <gwtmp01 / mac.com>:
>
> On Jul 9, 2009, at 12:15 AM, Yusuke ENDOH wrote:
>>
>> It seems to be an intentional change for the following use case:
>>
>> =A0# http://nov.tdiary.net/20071215.html#p02 (In Japanese)
>> =A0CONST2 =3D ["hoge", 1].freeze
>> =A0CONST2.each(&:freeze).all?(&:frozen?) #=3D> false (expected true)
>>
>> I have no idea whether the the rationale is sensible or not.
>> If the compatibility can be ignored, it would be more reasonable that
>> all immediate values are frozen as a default.
>
> Making Fixnum instances frozen by default would break code that depended =
on
> instance variable state:
>
> class Fixnum
> =A0attr_accessor :note
> end
>
> 42.note =3D 'the meaning of life'

I see.  Then, the current behavior of 1.9 seems to me to be reasonable.

--=20
Yusuke ENDOH <mame / tsg.ne.jp>