On Thu, Apr 26, 2001 at 01:13:47AM +0900, Yukihiro Matsumoto wrote:
> 
> Jim Freeze <jim / freeze.org> writes:
> 
> |-Case1
> |s = (n == 3 or n == 5)
> |=> false
> 
> |-Case2
> |puts (n == 3 or n == 5)
> |=> if:2: parse error
> |if:2: parse error
> 
> |-Case3
> |puts (n == 3 || n == 5)
> |=> false
> 
> Because they are different.  Parenthesises in case1 are for expression
> grouping, whereas those in case2 and case3 are for method arguments (a
> left parenthesis just after an identifier denotes beginning of method
> argument list).
> 
> The former can only contain single expression/statement.  The latter
> can contain list of expressions, not statements.

Why is 'n == 3 or n == 5' not an expression? And 
why is 'n == 3 || n == 5' on the other hand one? 

-- 
marko schulz

                          Dieser Satz beinhalten drei Fehller.