lua-users home
lua-l archive

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


Somewhat unpolished idea that just came to me when thinking about requiring
globals in scripts to be declared. What if one could write something like:

    local for global table, string

This would be equivalent to:

    global table, string
    local table, string = table, string

This would encourage people to build scripts that cache global lookups in
local variables.

Mark