Robert Dober
2/17/2009 11:43:00 AM
On Tue, Feb 17, 2009 at 9:34 AM, bhz <bhznospam@yahoo.com> wrote:
> On Sun, 15 Feb 2009 05:38:10 -0500, Robert Dober wrote:
>
>> On Sun, Feb 15, 2009 at 10:43 AM, bhz <bhznospam@yahoo.com> wrote:
>> I have submitted a patch to ruby-core.
>>
>> Turned out that this was certainly an error only *already* created
>> write accessors were ignoring the frozen? state of the object, thus
>>
>> x =OpenStruct::new.freeze
>> x.a = 42
>>
>> would have thrown the expected TypeError.
>>
>> Cheers
>> Robert
>
> Thanks for input. So we can expect it to be fixed in the new release?
>
>
I really do not know, depends if my patch or Joel's will be accepted,
but I see no reason why not ;).
R.
--
There are some people who begin the Zoo at the beginning, called
WAYIN, and walk as quickly as they can past every cage until they get
to the one called WAYOUT, but the nicest people go straight to the
animal they love the most, and stay there. ~ A.A. Milne (from
Winnie-the-Pooh)