From: Andreas Schwarz Date: 2004-08-23T22:25:58+09:00 Subject: Re: How to check syntax Graham Nicholls wrote: > OK, so its not a syntax error. Pedants :-) There ought to be a utility to > look for variable references, etc. This is almost impossible in dynamic languages like ruby. Variables can be defined everywhere, in eval(), conditional code, etc. You don't find out until you execute it. > Now, I realize that this may be hard as > its presumably akin to part of writing a compile. What I'd like to know, > then is how to avoid the above - its a real nuisance in "scripting > languages" (Oh and if you don't like that term, get over it - you know what > I mean, python, perl(ugh!) Ruby & the like) Use unit tests.