Re: [perl #127339] problem using Duration

2016-08-07 Thread mt1957
On 08/06/2016 05:39 AM, Zoffix Znet via RT wrote: Then the question remains why the multiplication results in Num if it multiplies with an integer It's merely a matter that such things require addition of three extra operators per operation (e.g. Duration * Duration, Duration * Num, Num * Dura

Re: [perl #127339] problem using Duration

2016-01-22 Thread mt1957
On 01/22/2016 01:52 PM, Sam S. via RT wrote: 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. Then the question remains why the multiplication results in Num if it multiplies wi

[perl #127339] problem using Duration

2016-01-21 Thread via RT
# New Ticket Created by mt1957 # Please include the string: [perl #127339] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127339 > l.s. In REPL; > my Duration $d .= new(10); 10 > $d += 1000 1010 > $d -= 900 110 > $d *= 2