From: Caleb Clausen Date: 2009-12-24T13:37:18+09:00 Subject: Re: Strange behavior of unary +@ for Fixnum? On 12/23/09, Ryan Davis wrote: > > On Dec 23, 2009, at 01:37 , Alexandre Mutel wrote: >> For example the unary +@ operator on symbols is not really working in >> 1.8.x. > > How is it not working on symbols? > > class Symbol > def +@ > puts "YES #{self}" > end > > def -@ > puts "NO #{self}" > end > end > > -:x # => NO x > +:x # => :x Ummmmm..... does that second line really make sense to you? Is there any reason why the + in +:sym should be ignored _in_the_lexer_, with not even a call to +@?