lua-users home
lua-l archive

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


David Given wrote:
If you use locals everywhere you can, rather than global variables (a good
idea anyway because it'll speed things up), then the compiler doesn't keep
track of the names therefore they won't get emitted. (Except in the debugging
code, with you remove with the luac -s option.)

That's right regarding local variables' names, but what about table fields' names? luac keeps them intact, even with the -s option.

*Don't* obfuscate your source code unless you truly desire a long stay at
Arkham Asylum!

I meant automatic obfuscating of variables' names, an additional "compilation" step, part of the make process. This shouldn't hurt the original source code.

--
Shmuel