lua-users home
lua-l archive

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


On 3 November 2015 at 13:26, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> Did you consider an inline expansion of short string keys?

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? This seems logical to expect but just wanted to be
sure.

Regards
Dibyendu