[perl #130638] [LTA] X::Seq don't say which Seq the exception occurred on

2017-01-24 Thread via RT
# New Ticket Created by Samantha McVey # Please include the string: [perl #130638] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130638 > CODE: my Seq $thing = (1,3,4).Seq; $thing.iterator; $thing.iterator STDERR: This Seq

[perl #130637] Odd segfaults with a small grammar

2017-01-24 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130637] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130637 > This program consistently segfaults for me: grammar Grammar::Foo { rule

Re: mocking $*OUT

2017-01-24 Thread Moritz Lenz
Hi Brian, On 24.01.2017 23:28, Brian Duggan wrote: > Hi All, > > This code: > > my $str = ''; > class Mock { > method say($arg) { $str ~= $arg } > } > $*OUT = Mock.new; > say 'hi'; > > produces: > > Too many positionals passed; expected 1 argument but got 2 > in block at

[perl #130636] #130634

2017-01-24 Thread via RT
# New Ticket Created by raiph # Please include the string: [perl #130636] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130636 > Golf'd to: role A { method m {} } role B does A {} class C does A does B {} Method 'm' must

Re: mocking $*OUT

2017-01-24 Thread Timo Paulssen
You're getting a stack trace that's missing the helpful bits, because they go through the core setting, and our default backtrace printer skips those. You can get the vital information you need by supplying --ll-exception directly after perl6. It'll show you that calling the sub "say" will grab

mocking $*OUT

2017-01-24 Thread Brian Duggan
Hi All, This code: my $str = ''; class Mock { method say($arg) { $str ~= $arg } } $*OUT = Mock.new; say 'hi'; produces: Too many positionals passed; expected 1 argument but got 2 in block at out.p6 line 6 Changing the signature of say doesn't seem to help. If I change

[perl #130634] Should Perl 6 be able to untangle the inclusion of the same role from different sources?

2017-01-24 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130634] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130634 > I posted this to Stackoverflow without anyone pointing out the error of my ways, so I

[perl #130628] “so” is not a valid token name (token so { abc })

2017-01-24 Thread Zoffix Znet via RT
On Mon, 23 Jan 2017 01:02:07 -0800, alex.jakime...@gmail.com wrote: > Code: > grammar A { token TOP { }; token so { foo } }; say A.parse('foo') > > Result: > Too many positionals passed; expected 1 argument but got 2 > in any !reduce at /tmp/whateverable/rakudo- >

[perl #130629] [REGRESSION] custom defined method no longer works (method defined { … })

2017-01-24 Thread Zoffix Znet via RT
On Mon, 23 Jan 2017 01:37:16 -0800, alex.jakime...@gmail.com wrote: > Code: > class C { method defined { True } }; say ?C > > Result (2015.12,2016.02): > True > > Result (2016.03,HEAD): > False > > > > Bisectable points to >