Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by adrianh (Chancellor)
on Dec 22, 2002 at 01:36 UTC ( [id://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.

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

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://221700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-18 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found