From: Mirko Nasato Date: 2000-03-26T12:29:19+02:00 Subject: [ruby-talk:02157] parse bug in 1.5 Ruby 1.5 seems to have a problem when parsing methods called with a {...} block if there is space before the opening paren. def greet(who="world", &how) print how.call, " #{who}!\n" end greet ("Matz") { "Ciao" } => Ciao Matz! # ruby 1.4.3 (1999-12-08) => parse error # ruby 1.5.3 (2000-03-23) greet () { "Hello" } => Hello world! # ruby 1.4.3 (1999-12-08) => parse error # ruby 1.5.3 (2000-03-23) Other forms seem to work fine, including greet ("Matz") do; "Ciao"; end greet "Matz" do; "Ciao"; end (While greet "Matz" { "Ciao" } results in a parse error with both Ruby 1.5 and 1.4.) Regards, -- Mirko Nasato