[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: API Version Query Function
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 8 Jun 2009 09:21:26 -0300
> It just seemed like an API function would be more appropriate than
> querying the _VERSION global.
Sure. We intend to add a lua_checkversion(L) API function in 5.2 that
will check that the Lua used to compile the client and the one used in
the Lua core linked to the app are the same, as was discussed here in
the past. If there is a version mismatch or if multiple Lua VMs are
detected, then an error will be raised.