From: Robert Dober Date: 2009-02-15T19:38:10+09:00 Subject: Re: Frozen OpenStruct allows modification On Sun, Feb 15, 2009 at 10:43 AM, bhz 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 -- 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)