--485b397dd68d32ba8504b7cd51ea
Content-Type: text/plain; charset=ISO-8859-1

I find this a strange Ruby error.

foo  1,2]

# The following is fine.
if (a  oo)
  puts a
end

# The following causes a SyntaxError: multiple assignment in conditional.
if (a, b  oo)
  puts a
end


Why would that be a syntax error?  Surely the grammar is

  if EXPR
    ...

and (a, b  oo) is an expression, isn't it?

Just curious, though my curiosity was prompted by a failing piece of real
code.

Gavin

--485b397dd68d32ba8504b7cd51ea--