From: Robert Klemme Date: 2004-08-12T16:56:10+09:00 Subject: Re: Interesting Ruby anomaly "Robert Klemme" schrieb im Newsbeitrag news:2o0ke5F5jbk9U1@uni-berlin.de... > > What do you think? > > I think it doesn't happen with OpenStruct: > > >> foo = OpenStruct.new > => > >> foo.alpha = nil > => nil > >> foo > => > >> foo.delta ||= 7 > => 7 > >> foo > => > >> > > Personally I'd implement SuperStruct like this: Forget that statement: I didn't see your comments, so your SuperStruct is quite different from what my suggestion would yield. Kind regards robert