Bugs item #3843, was opened at 2006-03-15 22:09
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3843&group_id=426

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Eric Ivancich (ivancich)
Assigned to: Nobody (None)
Summary: "not" operator used in expression that is a method parameter can generate syntax error

Initial Comment:
A syntax error is generated when calling a method where the parameter is computed using an expression involving the "not" operator under certain circumstances.

This problem seems to apply to all methods, but let's use foo as our sample method:

def foo(parameter)
  puts parameter.to_s
end

Here are some calls that demonstrate the apparent bug:

foo(!(1 < 2)) # works fine
foo(not(1 < 2)) # generates syntax error
foo(not 1 < 2) # generates syntax error
foo((not 1 < 2)) # works fine


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3843&group_id=426