Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #70119] List in a named argument shouldn't need extra parens.

0 views
Skip to first unread message

Lewis Wall

unread,
Oct 29, 2009, 8:54:35 PM10/29/09
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by Lewis Wall
# Please include the string: [perl #70119]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=70119 >


[17:48] <quietfanatic> rakudo: sub x (:@args) { say @args.perl }; x :args(3,
4)
[17:48] <+p6eval> rakudo 432047: OUTPUT«Nominal type check failed for
parameter '@args'; expected Positional but got Int instead␤in Main (file
src/gen_setting.pm, line 324)␤»
[17:48] <quietfanatic> rakudo: sub x (:@args) { say @args.perl }; x
:args((3, 4))
[17:49] <+p6eval> rakudo 432047: OUTPUT«[3, 4]␤»
[17:49] <quietfanatic> This isn't supposed to work that way is it?
[17:50] <@jnthn> quietfanatic: That looks a tad dubious...
[17:50] <quietfanatic> a comma is an operator that produces a list. The
parens shouldn't be what does it...
[17:50] <@jnthn> Aye.
[17:50] <@jnthn> Looks like a fail.

0 new messages