This would work, but has a couple of minor issues:

If we want to name an object attribute explicitly we could do it with a modified :Field attribute. For example, something like this wouldn't be hard to implement.

my %foo : Field; # no accessor my %foo : Field(as foo); # create accessor named foo

While easy to implement, it still has the duplication of names... which offends :-)


In reply to Re^3: Class::InsideOut - yet another riff on inside out objects. by adrianh
in thread Class::InsideOut - yet another riff on inside out objects. by adrianh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":