Hi,
In message "[ruby-talk:4683] Re: Function argument lists in parentheses?"
on 00/08/31, Toby Hutton <thutton / vet.com.au> writes:
|def func arg
| [0, 1, 2]
|end
|
|a, b, c = func "arg" --> error
|a, b, c = func("arg") --> ok
|a, b, c = (func "arg") --> ok
|
|Why doesn't the first form work? Is it assigning 'func' to 'a' (or
|'c'?) and then coming across '"arg"' and going WTF?
Oops, I forgot to allow them for RHS of multiple assignment.
matz.