Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: P6: how to supersede

by moritz (Cardinal)
on Jun 14, 2010 at 19:29 UTC ( #844714=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: P6: how to supersede
Select or Download Code
Re^2: P6: how to supercede (ot fun)
by Yary (Scribe) on Jun 14, 2010 at 20:28 UTC
    If you secede on spelling "supersede", you cede success and seed duress, successively and successfully.
Re^2: P6: how to supersede
by rir (Vicar) on Jun 14, 2010 at 20:31 UTC
    It helps if you spell it right :-)

    Well, um, um, ah, yes. Good point, thanks and for the work around.

    It is nice to see improved error messages in the pipe.

    Be well,
    rir

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://844714]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-09-23 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (219 votes), past polls