lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> >Is there a quick and easy way of making a lua script require variable
> >declarations.
> 
> For globals, see FAQ 3.1.
> --lhf

I forgot this, I must admit.
But the VB's Option Explicit I mentioned also works for local variables.
Mmm, but of course, for a variable to be local, it must be declared, so
there is no problem again.

Just wondering: is there a big performance cost with this method? Since this
is a Lua function called each time we use a global variable.

Regards.

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--

Sent through GMX FreeMail - http://www.gmx.net