On Wed, Jul 16, 2008 at 9:13 AM, Pit Capitain <pit.capitain / gmail.com> wrote:
> 2008/7/16 Michael T. Richter <ttmrichter / gmail.com>:

>        @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.
Cheers
Robert

-- 
http://ruby-smalltalk.blogspot.com/

---
AALST (n.) One who changes his name to be further to the front
D.Adams; The Meaning of LIFF