in reply to P6: how to <strike>supercede</strike> supersede
It helps if you spell it right :-)
$ ./perl6 -e 'supersede sub a { }' ===SORRY!=== "supersede" not yet implemented at line 1, near " sub a { }"
... for some value of "helps".
What works today is hiding outer sub in an inner lexical scope:
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'; }
Perl 6 - links to (nearly) everything that is Perl 6.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: P6: how to supercede (ot fun)
by Yary (Pilgrim) on Jun 14, 2010 at 20:28 UTC | |
Re^2: P6: how to supersede
by rir (Vicar) on Jun 14, 2010 at 20:31 UTC |
In Section
Seekers of Perl Wisdom