lua-users home
lua-l archive

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


Alex Queiroz wrote:

Hallo,

On 3/14/06, Noel Frankinet <nfr@gistek.net> wrote:
Thank you for you answer but,
what are __index, __newindex, _G and how do I  access them (from C).
Is there a doc or tutorial somewhere ?


    __index and __newindex are metamethods. Look for them in the
docs. See sections about metatables.

    http://www.lua.org/manual/5.1/
    http://www.lua.org/pil/

--
-alex
http://www.ventonegro.org/


Ok thank you, I'm slowly understanding what you mean ..
Best regards

--
Noël Frankinet
Gistek Software SA
http://www.gistek.net