in reply to goto with anonymous subs
Now, if you decided to implement continuation passing style with this:
Then I might be impressed.sub cool { my $return = pop; # get cps value my $p1 = shift; my $p2 = shift; ... ... if ($condition) { @_ = ($new, $arg, $new_return); goto &$return; } }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: goto with anonymous subs
by ysth (Canon) on Sep 12, 2005 at 23:38 UTC | |
|
Re^2: goto with anonymous subs
by kappa (Chaplain) on Sep 12, 2005 at 16:27 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |