# New Ticket Created by Stephane Payrard # Please include the string: [perl #75794] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75794 >
[11:46:54] <cognominal> is there a reason why take accepts only one argument? [11:48:08] <moritz_> not really [11:48:15] <Tene> I expect that the behavior of what that would mean isn't specified. [11:48:16] <moritz_> it should take a raw capture, and pass that on [11:48:26] <Tene> Sounds reasonable. [11:50:22] <pmichaud> > say gather for 1 { take (1,2,3) } [11:50:22] <pmichaud> 123 [11:50:32] <moritz_> that's not the same [11:50:42] <moritz_> take (1, 2, 3) vs take 1, 2, 3 [11:50:46] <pmichaud> yes, I know. [11:51:04] <pmichaud> take should have the same signature as return [11:51:40] <cognominal> should I masak that? I mean, file a bug? [11:52:01] <moritz_> yes, please [11:52:38] <pmichaud> src/builtins/control.pir, line 220 [11:52:46] <pmichaud> .param pmc value [11:52:48] <pmichaud> should be [11:52:53] <pmichaud> .param pmc value :slurpy [11:53:50] <pmichaud> and then do the same processing as in &return above [11:54:28] <pmichaud> in many ways, both &return and &take are the same, what differs is the type of exception thrown. http://irclog.perlgeek.de/perl6/2010-06-16#i_2443346 for the whole discussion. -- cognominal stef