lua-users home
lua-l archive

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


On 9 May 2016 at 04:35, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2016-05-06 17:46 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>>> Lua 5.3.3 (rc1) is now available for testing at
>>>       http://www.lua.org/work/
> ...
>> Follows a short list of what changed in 5.3.3:
>>
> ...
>> - new semantics for empty matches ("Python rule")
>
> Is there a way to distinguish between Lua 5.3.x (x<=2) and Lua
> 5.3.3, apart from exploiting different behaviour in gmatch/gsub?

Usually for this sort of thing you would do a feature test for what you need.
i.e. if you need the "python rule", write a one-line test for it: if
it doesn't pass, write a compatability shim for it.