Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by TimToady (Parson)
on May 29, 2007 at 19:30 UTC ( [id://618036]=note: print w/replies, xml ) Need Help??


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

We made it really easy to write closures and deref them in Perl 6 so that people would not feel the need to invent special syntax for deferred evaluation. So basically, you use curlies to delimit any kind of "tail without the animal", and calling a closure is how you add the animal back in. And closures have the advantage of taking additional arguments if you want multiple degrees of "animal" freedom in your locator. S12 is now clarified to indicate that $object.$methodname() is able to call into a closure as well as into a named method. Thanks.

Replies are listed 'Best First'.
Re^4: [Perl 6] Any provision for a "dereferencing object"?
by blazar (Canon) on May 29, 2007 at 20:40 UTC
    S12 is now clarified to indicate that $object.$methodname() is able to call into a closure as well as into a named method. Thanks.

    "Thanks"? No, thank you! (I added a link to the quote above and I'm reporting hereafter the relevant part of the Synopsis.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 01:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found