in reply to Re^3: Class::InsideOut - yet another riff on inside out objects.
in thread Class::InsideOut - yet another riff on inside out objects.
Ah. Unfortunately, not that sneaky after all. Consider:
{ package Test; use base qw(Class::InsideOut); sub new { bless [], shift }; my %foo : Field; };
%foo might now be tied but, since there is no way to access it, no magical attribute generation can happen :-(
Only works if you need to access the hash elsewhere in the same class - which may not always happen.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Class::InsideOut - yet another riff on inside out objects.
by Aristotle (Chancellor) on Dec 22, 2002 at 02:17 UTC | |
by adrianh (Chancellor) on Dec 22, 2002 at 11:50 UTC |
In Section
Meditations