Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: [Perl 6] Any provision for a "dereferencing object"?

by jettero (Monsignor)
on May 28, 2007 at 21:17 UTC ( #617883=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $a = []; $a->[1]{bar}{baz}[3] = 7;
    bless $a, "hrmph";
    *hrmph::deref = sub { $_[0]->[1]{bar}{baz}[3] };
    print "yeah: ", $a->deref, "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-04-18 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?