# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #74608]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74608 >


<JimmyZ> rakudo: my $a = time; (time - $a).say; my $b = time;
($b-$a).say; # masak: Is it right?
<p6eval> rakudo 6783b5: OUTPUT«1272031144.30542␤0.0101950168609619␤»
<JimmyZ> rakudo: my $a = time; (time() - $a).say;
<p6eval> rakudo 6783b5: OUTPUT«0.000250816345214844␤»
<JimmyZ> rakudo: my $a = time; (time - $a).say;
<p6eval> rakudo 6783b5: OUTPUT«1272031175.83554␤»
<moritz_> std.pm also parses time as a listop
<masak> JimmyZ: it parses as 'time(-$a)'
<masak> and, I think, rightly so.
* masak conceives of a warning "you seem to be using this prefix:<->
as if it were an
  infix:<->. please reconsider"
<masak> question is, why doesn't &time complain when it gets >0 arguments?
<moritz_> masak: bug, I'd say
* masak submits rakudobug
<masak> after it's fixed, at least JimmyZ and the likes of him will
get a runtime error.

Reply via email to