From: Robert Klemme Date: 2009-02-16T02:08:26+09:00 Subject: Re: Frozen OpenStruct allows modification On 15.02.2009 11:38, Robert Dober wrote: > On Sun, Feb 15, 2009 at 10:43 AM, bhz wrote: > I have submitted a patch to ruby-core. Well done! > 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. Thanks for the update and the insights! Kind regards robert