Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Class::InsideOut - yet another riff on inside out objects.

by adrianh (Chancellor)
on Dec 22, 2002 at 01:36 UTC ( #221700=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^4: Class::InsideOut - yet another riff on inside out objects.
Select or Download Code
Re^5: Class::InsideOut - yet another riff on inside out objects.
by NodeReaper (Curate) on Dec 22, 2002 at 02:06 UTC
Re^5: Class::InsideOut - yet another riff on inside out objects.
by Aristotle (Chancellor) on Dec 22, 2002 at 02:17 UTC

    Argh. Of course. I'm starting to feel a bit stupid. I should get 5.8 myself and start playing around so I don't miss the obvious loopholes in my ideas.

    At any rate it looks as though we'll have to get out the heavy hitter to crush this one..

    Makeshifts last the longest.

      I've never used any of the B:: modules in anger before - maybe if I get some free time over the Crimble break I'll give it a whirl.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://221700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-28 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls