lua-users home
lua-l archive

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


Hello .
I am trying to read lua.c to want know how lua works.
And I want to ask about lua_getglobal function.

I find a this code .
  lua_getglobal(L, firstline ? "_PROMPT" : "_PROMPT2");

I know that this code means get a value PROMPT("> ") or PROMPT2(">> ") .
But why does it use underscore [ _ ] front of global names ?

Thanks.
Yutaka

http://saitolog.blogspot.com/