How do I test whether a variable is defined before referencing it?
问题 I would like to be able to test whether a variable is defined, prior to accessing it. I like to have a global that specifies a "debug level". If debug level is 0, no extra output is given. When greater than 1, debug output is given, with more verbosity at greater numbers. I also would like to set it up so that the procedures would run, and assume a level 0, if I had not gotten around to defining it. Something like: (where defined? is the magic I don't know how to do? (if (and (defined? debug