[perl #125523] [LTA] num64 not properly defaulting

2017-10-05 Thread jn...@jnthn.net via RT
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote: > Right, because it's a Rat. > > sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a > native > number: P6opaque, Rat > sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil > No need for .Num, just write it as 1e0

[perl #125523] [LTA] num64 not properly defaulting

2017-10-05 Thread jn...@jnthn.net via RT
On Mon, 02 Oct 2017 18:09:45 -0700, alex.jakime...@gmail.com wrote: > Right, because it's a Rat. > > sub foo(num64 $scale = 1.0) {}; say foo # This type cannot unbox to a > native > number: P6opaque, Rat > sub foo(num64 $scale = 1.0.Num) {}; say foo # Nil > No need for .Num, just write it as 1e0