note
moritz
It helps if you spell it right :-)
<code>
$ ./perl6 -e 'supersede sub a { }'
===SORRY!===
"supersede" not yet implemented at line 1, near " sub a { }"
</code>
<p>... for some value of "helps".
<p>What works today is hiding outer sub in an inner lexical scope:
<code>
sub asub ( $ace, $deuce?, $trey? ) {
say "$ace $deuce $trey";
}
use Test;
plan 1;
{
sub asub( $ace, $deuce?, $trey? ) { 'asub' };
is asub(1), 'asub', 'lexically hiding works';
}
</code>
<div class="pmsig"><div class="pmsig-616540">
[http://perl6.org/|Perl 6] - links to (nearly) everything that is Perl 6.
</div></div>
844704
844704