But JS is setting this implicitly, i.e. it's not the first argument like self in Python and Perl.
You could mimic the semantics of JS and Ruby with closure variables holding references...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
PHP seems to have an implicit $this.
In reply to Re^4: Recap: The Future of Perl 5
by LanX
in thread Recap: The Future of Perl 5
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |