P is for Practical | |
PerlMonks |
Re^3: [Perl 6] Any provision for a "dereferencing object"?by blazar (Canon) |
on May 29, 2007 at 14:40 UTC ( [id://617971]=note: print w/replies, xml ) | Need Help?? |
UPDATE: Oh, I see what you're up to I think. Some function you build once and applicate anwhere. I am also a little surprised your $x->$deref. Well, that's a bit of common OO syntactical sugar: if $code contains a subref, then in
the corresponding sub is called as a method on $object. This is often used to implement callbacks in a way that personally I like:
In Section
Meditations
|
|