[perl #129827] [BUG] method form of `return` errors out instead of returning

2016-10-07 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #129827] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129827 > m: sub { 42.return }() rakudo-moar 605f27: OUTPUT«Attempt to return outside of any Ro

[perl #128584] [BUG] reduce subroutine returns NaN when calculating decimals with negative exponents

2016-10-07 Thread Zoffix Znet via RT
First a bit of deconfusion: negative exponents just mean x⁻² = 1/x². That works just fine and is not relevant to this ticket: m: say (-2) ** -2 rakudo-moar 605f27: OUTPUT«0.25␤» Fractional exponents mean the number is raised to the power of the numerator and then the denominator-th-ro

[perl #128584] [BUG] reduce subroutine returns NaN when calculating decimals with negative exponents

2016-10-07 Thread Zoffix Znet via RT
First a bit of deconfusion: negative exponents just mean x⁻² = 1/x². That works just fine and is not relevant to this ticket: m: say (-2) ** -2 rakudo-moar 605f27: OUTPUT«0.25␤» Fractional exponents mean the number is raised to the power of the numerator and then the denominator-th-ro

Re: [perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-07 Thread Joachim Durchholz via RT
Am 06.10.2016 um 21:07 schrieb Brandon Allbery via RT: > Actually, now that I think about it, there is something that can be done; > not ideal, but the best we could do under the circumstances. Callbacks > should be given default exception handlers that at minimum output the > original exception (w

[perl #129829] .pick on large ranges returns binary-sparse result

2016-10-07 Thread via RT
# New Ticket Created by Aaron Sherman # Please include the string: [perl #129829] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129829 > >From IRC: [15:12] m: say ((2**80) ..^ (2**81)).pick.base(2) [15:12] <+camelia> rakudo

Re: [perl #129829] .pick on large ranges returns binary-sparse result

2016-10-07 Thread Patrick R. Michaud
On Fri, Oct 07, 2016 at 12:18:43PM -0700, Aaron Sherman wrote: > [15:12] m: say ((2**80) ..^ (2**81)).pick.base(2) > [15:12] <+camelia> rakudo-moar 605f27: > OUTPUT«100011101100100110010001010110101101010011001␤» > > The middle part is always a large number of

[perl #127951] Probably removing a p6bool where it shouldn't

2016-10-07 Thread Christian Bartolomaeus via RT
I think the p6bool is removed here: https://github.com/rakudo/rakudo/blob/605f272881a76f0c5a9e352670a1e61eaa627ca6/src/Perl6/Optimizer.nqp#L1300 As far as I understand, the following code shows the problem at a lower level (no differentiation between optimize=(1|2) required -- it happens on all

[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

[perl #129830] [BUG] Cannot call .type method on an Array instance

2016-10-07 Thread via RT
# New Ticket Created by Itsuki Toyota # Please include the string: [perl #129830] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129830 > See the following result: $ perl6 -e 'class TypeHouse { has Int @.array; }; TypeHouse.

Re: [perl #129830] [BUG] Cannot call .type method on an Array instance

2016-10-07 Thread Brandon Allbery
[08 02:06:10] m: class TypeHouse { has Int @.array; }; dd TypeHouse.^attributes[0]; [08 02:06:11] rakudo-moar 2285d3: OUTPUT«Attribute @!array = Attribute.new␤ [08 02:06:11] » [08 02:06:24] m: class TypeHouse { has Int @.array; }; dd TypeHouse.^attributes[0].type; [08 02:06:25] rakudo-moar 228

Re: [perl #129830] [BUG] Cannot call .type method on an Array instance

2016-10-07 Thread Brandon Allbery via RT
[08 02:06:10] m: class TypeHouse { has Int @.array; }; dd TypeHouse.^attributes[0]; [08 02:06:11] rakudo-moar 2285d3: OUTPUT«Attribute @!array = Attribute.new␤ [08 02:06:11] » [08 02:06:24] m: class TypeHouse { has Int @.array; }; dd TypeHouse.^attributes[0].type; [08 02:06:25] rakudo-moar 228