From: Pit Capitain Date: 2008-07-16T18:31:46+09:00 Subject: Re: Complicated class initialization/instantiation problem. 2008/7/16 Robert Dober : > On Wed, Jul 16, 2008 at 9:13 AM, Pit Capitain wrote: > >> @registry[tag] ||= klass > Although your simplification of > h[k] = value unless h.has_key? k > to > h[k] || = value > is *often* what the user wants, but it is *not* equivalent code of course. > Just wanted to point that out to be on the save side. Servus Robert, thanks for the reminder. Because Michael wants to store classes as hash values, I assumed that nil or false wouldn't be valid values and therefore the simplification was OK. Regards, Pit