From: Alexandre Mutel Date: 2009-12-23T18:37:15+09:00 Subject: Re: Strange behavior of unary +@ for Fixnum? Marc Heiler wrote: > I think it is a quite short topic actually. > > Which operators are commonly overloaded in ruby? I mean, when you need to use intensively operators, there are lots of (small) issues, difference between 1.8.x and 1.9.x, difference with JRuby with --1.9 switch... Actually, I'm using operators overloading for a DSL to accept new If/Else/Elsif expressions, and have to deal with those issues. For example the unary +@ operator on symbols is not really working in 1.8.x. As well as the ! operator that was finally introduced in 1.9.x. For the Fixnum, i didn't find any documentation (until here) that states that +@ operator for numeric are in fact consumed by the parser as literals... -- Posted via http://www.ruby-forum.com/.