[ruby-talk:02460] Re: Precedence question

From: matz@... (Yukihiro Matsumoto)
Date: 2000-04-12 05:52:13 UTC
List: ruby-talk #2460
Hi,

In message "[ruby-talk:02459] Precedence question"
    on 00/04/11, Dave Thomas <Dave@thomases.com> writes:

|I'm trying to document why

|     6 * inc 7
|
|     -:5: parse error

|Is it correct to say that it's simply a precedence thing, and that
|it's being parsed as
|
|   (6*inc) 7
|
|or is there something more subtle going on?

Because method call without parentheses is considered as statement,
which can not be part of expression unless grouped within parentheses.

							matz.

In This Thread