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";