Hi,
Am Donnerstag, 15. Feb 2007, 20:52:08 +0900 schrieb Pedro Del Gallego:
> Why the first and the second calls dosnt works and the third works?
> 1.1) loopN 5, {puts "hola"}   # compile error , parse error unexpected
> "{", expected "$"
> 1.2) loopN 5 {puts "hola"}    # compile error , unexpected tString.
> 1.2) loopN (5) {puts "hola"}  # works

Precedence. "do .. end" has low precedence, applies to the leftmost
function name, "{ ..}" has high.

  loopN 5 do puts "hola" end  # should work

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de