[perl #130041] [BUG] Pair in enum declaration should either DWIM or parsefail

2017-11-28 Thread Larry Wall via RT
This also showed up when doing things like: enum Foo ( Z=> 1,2,3); Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed. On Mon, 07 Nov 2016 11:37:06 -0800, FROGGS.de wrote: > m: enum Foo ( A => 42, 'B', 'C', 'D' ); say +B > rakudo-moar e10f76: OUTPUT«43␤» > > m: enum Foo ( 'A

[perl #132514] [JVM] Failing tests in S03-operators/set_*.t, probably wrong multi selected

2017-11-28 Thread via RT
# New Ticket Created by Christian Bartolomaeus # Please include the string: [perl #132514] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132514 > Currently the following test files under S03-operators do not run to completion

[perl #130041] [BUG] Pair in enum declaration should either DWIM or parsefail

2017-11-28 Thread Larry Wall via RT
Actually, the Z=> misbehavior is already called out in #128017. On Tue, 28 Nov 2017 00:04:05 -0800, larry wrote: > This also showed up when doing things like: > enum Foo ( Z=> 1,2,3); > > Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed. > > > On Mon, 07 Nov 2016 11:37:06

[perl #130041] [BUG] Pair in enum declaration should either DWIM or parsefail

2017-11-28 Thread Larry Wall via RT
Actually, the Z=> misbehavior is already called out in #128017. On Tue, 28 Nov 2017 00:04:05 -0800, larry wrote: > This also showed up when doing things like: > enum Foo ( Z=> 1,2,3); > > Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed. > > > On Mon, 07 Nov 2016 11:37:06

[perl #130446] [REGRESSION] [LTA] Creating an enum from a Hash does not work but no longer warns (enum Bits (%thing))

2017-11-28 Thread Larry Wall via RT
Fixed in 754664ed54aea24f9c9162002b6e68aadd311412. Note however, that there's a braino above, since the 'my' is initialized after the value is needed. So the fix is to warn about an empty variable, not to make it work. (It does work if you make it a constant, or put the my inside a BEGIN.) On

[perl #128017] enum treats a Seq of Pairs as a List of Str

2017-11-28 Thread Larry Wall via RT
Fixed in 754664ed54aea24f9c9162002b6e68aadd311412. On Thu, 28 Apr 2016 07:06:42 -0700, gfldex wrote: > enum Bits ( (('Bit-' X~ 1..8) Z=> (1, 2, 4 ... 256)) ); dd Bits.enums; > # OUTPUT«{"Bit-1\t1" => 0, "Bit-2\t2" => 1, "Bit-3\t4" => 2, "Bit- > 4\t8" => 3, "Bit-5\t16" => 4, "Bit-6\t32" => 5, "Bit-

[perl #122929] quoted LHS of pair constructor inside enum definition makes elements be ignored

2017-11-28 Thread Larry Wall via RT
Fixed in 754664ed54aea24f9c9162002b6e68aadd311412. On Wed, 08 Oct 2014 05:20:07 -0700, timo wrote: > compare: > > > perl6-m -e 'enum Bug ("foo" => -1, "A", "B"); say +A; say +B;' > > 1 > > 2 > > and: > > > perl6-m -e 'enum Bug (foo => -1, "A", "B"); say +A; say +B;' > > 0 > > 1 > > an