From: Colin Bartlett Date: 2009-12-22T11:14:21+09:00 Subject: Re: Strange behavior of unary +@ for Fixnum? On Mon, Dec 21, 2009 at 10:51 PM, Alexandre Mutel wrote: > I suspect Ruby's parser to perform some unexpected "optimization" > here... I haven't looked at the source code, but I think I'm right in saying that Ruby parses (-7) as an _integer literal_, unless it's an expression like (-7**2) in which case it's parsed as (-(7**2)), that is (7**2).send( :-@ ) By analogy, it seems that the parser is treating (+7) as an integer literal, not as 7.send( :+@ ) ?