lua-users home
lua-l archive

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


Hello List,


I am a new Lua user, so please forgive my ignorance.

I have a few question:

1. I would like to know how to push multiple variables on the stack (from
Lua).

I follow this article:

http://www.lua.org/pil/25.2.html

When I call (in Lua) return x, it will return only the x variable.

Shall I use the lua_getglobal() function? I don't feel that this is a good
solution.

2. Can I access unix time in Lua? Can I use the same functions like
gettimeofday(), localtime_r() calls? Or does it have different calls for
time?

Thank you for your help.

Levente

-- 
Levente Kovacs
CTO, CSO
http://levente.logonex.eu