On Sun, Sep 7, 2008 at 7:00 AM, Trans <transfire / gmail.com> 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 =3D> 42
behaves as before
OpenStruct::defaulted :a =3D> 42
sets the hash :a =3D> 42 as default value.
Naming has never been one of my many ;) talents, but I guess you got the id=
ea.

Cheers
Robert

--=20
C'est v=E9ritablement utile puisque c'est joli.

Antoine de Saint Exup=E9ry