From: Bil Kleb Date: 2007-07-22T16:54:59+09:00 Subject: Re: Syntax bug, in 1.8.5? return not (some expr) <-- syntax error vs return (not (some expr)) <-- fine Good Night Moon wrote: > > myrect.rb:8: syntax error, unexpected kNOT, expecting kEND > return not ((other.x1 < self.x0 or self.x1 < other.x0) and You need to use the '!' operator instead of the 'not' "conjunction". It's a precedence thing -- the parser is seeing 'return not' -- see parse.y in the source. Regards, -- Bil Kleb http://fun3d.larc.nasa.gov