The generic destroy would work fine, since the class would remember all the fields it generated using this syntax just as well as it could using any other syntax.

I agree that this still names the field twice (public name optional, internal ref optional) when most of the time you'd be happy to use the same name in both places.


In reply to Re: Re^3: Class::InsideOut - yet another riff on inside out objects. by John M. Dlugosz
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":