From: Huayin Wang Date: 2000-01-24T14:54:14-06:00 Subject: [ruby-talk:01172] Re: Possible bug in ruby-man-1.4 > |Well, I guess it comes down to what you mean by an integer > |literal. Right now, we have a somewhat confusing situation: > | > | a = -2 > | > |assigns '-2' directly to a > | > | a = -2.+(3) > | > |generates 5:Fixnum, then applies -@, resulting in -5. > > Agree with it. According to the principle of less surprise, I'll > change the parser to understand UMINUS followed by digits as number. > Acutually it worked so before. I removed that for simplicity, but > maybe it was too simple. > > matz. does this have anything to do with the following? irb(main):001:0> -2 ** 2 -4 irb(main):002:0>