On 12 Sep 2005, at 15:01, leonardo.pires / gmail.com wrote:

> I know that { ... } and do ... end have differente precedente. But,
> using the latter, I got a syntax error. (I'm using version 1.8)
>
> IMHO, because there's something implicit?

$ ruby
p 5 do end
p(5) { }
p 5 { }
-:2: syntax error
p 5 { }
      ^

{} blocks require parens if you have arguments other than the block.

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04