From: Robert Feldt Date: 2001-11-10T00:50:50+09:00 Subject: [ruby-talk:24771] Re: Trailing uc strange lexer error message?! On Sat, 10 Nov 2001, Paul Brannan wrote: > It doesn't make sense to have an underscore in the one's place, imo: > > x = 123_ > This is correctly IMHO a "trailing uc" error. > I think the pointer is after the underscore because that's the point at > which Ruby realizes it has reached the end of the number. > But -9_.8 is ok so the problem is with having a leading underscore?! Are we misunderstanding each other? Please check again: $ irb irb(main):001:0> -9_.8 -9.8 irb(main):002:0> -9_._8 SyntaxError: compile error (irb):2: trailing `_' in number -9_._8 ^ from (irb):2 Regards, /Robert