From: Robert Dober Date: 2008-09-07T18:21:32+09:00 Subject: Re: Extend OpenStruct's functionality with explicit default value On Sun, Sep 7, 2008 at 7:00 AM, Trans wrote: I followed this discussion rather loosely, but sometimes that gives a different perspective. In order to avoid the hash vs. hash semantics why not just add a different constructor? OpenStruct::new :a => 42 behaves as before OpenStruct::defaulted :a => 42 sets the hash :a => 42 as default value. Naming has never been one of my many ;) talents, but I guess you got the idea. Cheers Robert -- C'est véritablement utile puisque c'est joli. Antoine de Saint Exupéry