From: Hal Fulton Date: 2004-11-30T09:23:16+09:00 Subject: Re: Another improved error message request Sam Roberts wrote: >>The point is that >> >> 100.times | i | puts >> >>is totally valid syntax. It is very hard for a parser to detect this >>type of error. If anyone comes up with an idea, please tell me. > > > It is? Well, you would know... :-) but I'm confused! > > $ irb18 > irb(main):001:0> 100.times | i | puts > LocalJumpError: no block given > from (irb):1:in `times' > from (irb):1 > > I'm building again, maybe my 1.8 is too far out of date. I think you're seeing a runtime error -- i.e., it is not one detected by the parser. Hal