develooper Front page | perl.perl6.compiler | Postings from July 2008

[perl #56944] [BUG] integer arithmtics should result in integers

From:
Moritz Lenz
Date:
July 15, 2008 07:51
Subject:
[perl #56944] [BUG] integer arithmtics should result in integers
# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #56944]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56944 >


Rakudo r29470:
$ ../../parrot perl6.pbc -e 'say (1+1).WHAT'
Num
$ ../../parrot perl6.pbc -e 'say (1*1).WHAT'
Num
$ ../../parrot perl6.pbc -e 'say (1**1).WHAT'
Num

All of these should print Int instead.
(This is a known bug, but as far as I can see it hasn't been in RT)

-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About