lua-users home
lua-l archive

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



On 24-Jul-04, at 2:33 PM, Adrian Sietsma wrote:

unless the lua compiler builds a stringtable of literals,

Actually, the loader "builds the stringtable", or rather interns the strings into the string table.

Once the compiled bytecode is loaded into the VM, the strings (and all Lua strings are constants) are interned, so at execution time it is simply a pointer comparison.