Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by TimToady (Parson)
on Jun 01, 2007 at 06:13 UTC ( [id://618647]=note: print w/replies, xml ) Need Help??


in reply to Re: [Perl 6] Any provision for a "dereferencing object"?
in thread [Perl 6] Any provision for a "dereferencing object"?

Well, it would be wicked to use <*> to hold magic cookies, since that construct is supposed to only contain literal strings. However, Perl 6 already specs a multidimensional syntax in Synopsis 9 to do what you want:
$hash{ **; 'foo2'} $hash{ 'bar'; **; 'foo2' }
Whether this is actually implementable is another question...

Replies are listed 'Best First'.
Re^3: [Perl 6] Any provision for a "dereferencing object"?
by vrk (Chaplain) on Jun 01, 2007 at 06:57 UTC

    I don't see why it wouldn't be. At worst, you would need to do a breadth-first search through the whole datastructure (which, in the general case, is likely to be a graph rather than a tree). Of course, this may be terribly slow, but surely it's implementable.

    --
    print "Just Another Perl Adept\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found