From: SpringFlowers AutumnMoon Date: 2007-09-26T01:49:41+09:00 Subject: so surprised syntax error not caught here the following syntax error for "elif" is not caught? (should be elsif) def foo(i) if i < 0 return "Less than 0" elif i == 0 return "it is zero" else return "Greater than 0" end end p foo(-2) p foo(0) p foo(10) ================== Output: "Less than 0" "Greater than 0" "Greater than 0" -- Posted via http://www.ruby-forum.com/.