lua-users home
lua-l archive

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


> The constants that represent keys for a table in expressions like:
> 
> t.name
> 
> can the compiler assume that the pointer to 'name' string will never
> change - i.e. can the JIT compiler treat the pointer as an integer
> (intptr_t) literal?

Sure (as long the string is not collected...)

-- Roberto