On 01/22/2016 01:52 PM, Sam S. via RT wrote:
Then the question remains why the multiplication results in Num if it multiplies with an integer. Besides, addition of a Num still becomes a Duration. See following REPL;This is the root of the problem:➜ say ($d + 2).WHAT; (Duration)➜ say ($d * 2).WHAT'(Num) The behavior of += and *= is just a consequence of that.
> my Duration $d .= new(10); 10 > $d += 1.1 11.1 > $d += 1.1 12.2 > $d.WHAT.say (Duration)