On Thu, May 15, 2008 at 11:30 PM, Thomas Reinke <[EMAIL PROTECTED]> wrote: > Variables in a function in NASL do not _need_ to be declared.
Isn't it magical? > If the variable is not declared at all, it will be created, automatically, > with a global scope. Or maybe not? Who knows? > 1) Change the nasl "compiler" to force all variables to be > explictly declared; Which is, as far as I can remember, incredibly easy. > 2) Default undeclared variables to a local scope; That looks like a good idea. Maybe I already had it. > 3) Have a "lint" style checker that examined functions and > warned of global variable usage, which could then be vetted > as acceptable (or not) Which is probably not very complicated. _______________________________________________ Openvas-discuss mailing list [email protected] http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss
