lua-users home
lua-l archive

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


On 05/19/2013 03:53 AM, Andres Perera wrote:
This is, in C, the difference between: const type * and type * const, but for the purposes of this proposal, a lua declaration such as: constant t = {} sets both the variable name and the table to const
That would then mean, you could not use those tables with require as require can't know what it will return before it is called. So it can't be static const.

Not be able to use require spoils the whole point of an import statement.
--
Thomas