[perl #126517] [JVM] can't have sub as implicit return of sub

2016-10-07 Thread Christian Bartolomaeus via RT
On Thu Oct 06 16:07:15 2016, elizabeth wrote: > [...] > >> 13:42 < lizmat> [Coke]: that is a known issue, several places in the > >> core work > >>around that > >> 13:42 < lizmat> r: sub foo($a) { my $ = sub bar {} }; my $a=foo(1); > >> 13:42 <+camelia> rakudo-{moar,jvm} a05867: ( n

Re: [perl #126517] [JVM] can't have sub as implicit return of sub

2016-10-06 Thread Elizabeth Mattijsen
Christian, > On 06 Oct 2016, at 22:23, Christian Bartolomaeus via RT > wrote: >> 13:42 < lizmat> [Coke]: that is a known issue, several places in the >> core work >>around that >> 13:42 < lizmat> r: sub foo($a) { my $ = sub bar {} }; my $a=foo(1); >> 13:42 <+camelia> rakudo-{moar

[perl #126517] [JVM] can't have sub as implicit return of sub

2016-10-06 Thread Christian Bartolomaeus via RT
On Sat Oct 31 10:56:36 2015, coke wrote: > This dies, but only on the JVM: > > 13:41 < [Coke]> r: sub foo($a) { sub bar {} }; my $a=foo(1); > 13:41 <+camelia> rakudo-moar a05867: ( no output ) > 13:41 <+camelia> ..rakudo-jvm a05867: > OUTPUT«java.lang.NullPointerException␀ > in bl

[perl #126517] [JVM] can't have sub as implicit return of sub

2015-10-31 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #126517] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126517 > This dies, but only on the JVM: 13:41 < [Coke]> r: sub foo($a) { sub bar {} }; my $a=foo(