[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (final) now available
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 18 Dec 2011 10:07:21 -0200
> On a related note, is it possible to detect reliably at run time which
> exact version of Lua a script is being run on, i.e. which release number
> and which patch level?
> It would be nice for a script to be able to detect that it's being run
> on, for example: 5.1.4-patchlevel 3 instead of 5.1.5.
The whole point of minor releases is that this detection cannot be done,
because they are ABI compatible. See http://www.lua.org/versions.html#numbering
However, it can be done in C if needed.