lua-users home
lua-l archive

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


On Mon, Jun 8, 2009 at 6:09 AM, Luiz Henrique de
Figueiredo<lhf@tecgraf.puc-rio.br> wrote:
>> Could we get a C API function that allows us to query Lua's version
>> without needing to open a Lua state. Something like:
>>
>> const char * lua_getversion (void);
>
> Why do you need to avoid opening a Lua state?

Sorry, I didn't quite answer your question (multi-tasking while
writing e-mails is bad). I suppose a simple moving of the test for
version can be done after the opening of libraries. It just seemed
like an API function would be more appropriate than querying the
_VERSION global.

-- 
-Patrick Donnelly

"Let all men know thee, but no man know thee thoroughly: Men freely
ford that see the shallows."

- Benjamin Franklin