From: mental@... Date: 2005-12-08T02:51:42+09:00 Subject: Re: small question about ruby -c Quoting pat eyler : > ok'. (not as expected). I went ahead and ran the script (with > the 'otherwise' change) and got: > > -- primes_with_error.rb:29: undefined local variable or method > `otherwise' for main:Object (NameError) > from primes_with_error.rb:25:in `each' > from primes_with_error.rb:25 > > > Any reason that ruby -c didn't catch this? Basically, it's not a syntax error. It's possible for a script to be wrong in surprising ways but still syntactically valid. -mental