From: Alexandre Mutel Date: 2009-12-26T01:33:13+09:00 Subject: Re: Strange behavior of unary +@ for Fixnum? Ryan Davis wrote: > How is it not working on symbols? > +:x # => :x > > Have you filed any bugs (or even sent email) against ruby-core for the ! > operator? This is exactly the case that was not working! ;) I didn't report any issue to 1.8.x because it was fixed on 1.9.x and i assume that they are not going to backport all fixed issues from 1.9.x. Although, I did a report to JRuby for both +@ and ! operators and they did a quick fix that should be available for 1.5. > Did you actually look at a grammar for ruby? There has been one online > for just about forever (granted it is from 1.4, but I don't think it has > changed all that much in this arena). You can also look at ParseTree's > output, or ruby_parser's, or, or, or... I agree that there are several ways to get this information (even looking at Ruby source code parser), but i found that redirecting to the BNF grammaar of the language for a newcommer is quite a tough way... -- Posted via http://www.ruby-forum.com/.