# New Ticket Created by  "jason switzer" 
# Please include the string:  [perl #66822]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66822 >


(2:34:19 PM) s1n_yapc: rakudo: sub foo($opt?, $other) { say "opt {$opt}
other {$other}" }; foo(1, 2);
(2:34:22 PM) p6eval: rakudo 1b06df: OUTPUT«opt 2 other 1␤»
(2:34:31 PM) s1n_yapc: is that right?
(2:35:25 PM) moritz_: s1n_yapc: no, should be compile-time error
(2:35:44 PM) ***s1n_yapc submits
(2:35:45 PM) moritz_: s1n_yapc: all optional positionals must go after
mandatory ones, iirc
(2:36:06 PM) s1n_yapc: moritz_: but it was supposed to fail to compile?
(2:36:52 PM) moritz_: s1n_yapc: yes
(2:37:56 PM) skids: S06: "Arguments destined for required positional
parameters must come before those bound to optional positional parameters."
and "Required parameters are specified at the start of a subroutine's
parameter list"

Also, this might be a dup of rt#54800 (may be the same underlying problem).

-Jason "s1n" Switzer

Reply via email to