[perl #22765] Unary '+' is not symmetric to unary '-' in languages/perl6

2003-06-24 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #22765] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22765 Hi, when playing with the stuff in 'languages/perl6', I noticed that code

Re: [perl #22765] Unary '+' is not symmetric to unary '-' in languages/perl6

2003-06-24 Thread Sean O'Rourke
Looks good, except that this needs to make sure an int is being returned, e.g. +42- 42 +forty-two - 0 The lazy man in me would just shove it through an int reg, but that loses precision if we go to bignums. Though for the moment I can't think of a better way. /s