Author Login
Post Reply
Sorry from what I'm sure is a FAQ (I checked the FAQ and tried to
search the mailing list archives first; no luck),
How do I test for a variable being defined? I tried the obvious:
if (foo == null)
foo = new Foo()
But Groovy barfs on this, complaining that 'foo' is not a property of
my anonymous script object.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email