[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Compat-5.2: a tiny Lua module providing some Lua-5.2-style APIs for Lua 5.1
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 5 Sep 2013 08:41:28 +0200
On Wed, Sep 4, 2013 at 7:08 PM, Hisham <h@hisham.hm> wrote:
> Not sure about how to deal with the deprecated stuff. Maybe a
> compat52.strict module is really a good idea. :)
First, congrats on a library that matches an important need.
With Penlight, I was mostly only trying to solve Penlight's portability issues:
https://github.com/stevedonovan/Penlight/blob/master/lua/pl/compat.lua
And in fact, new version on master can run with Lua 5.2 with the
deprecated stuff switched off.
The deprecated stuff is a fact of life. I think the Lua authors
intention was to leave the old API around and finally take them out in
5.3. But Miles informs us that Debian is packaging a 'pure' Lua 5.2
already.
As for C extensions, a little C header + file could do 90% of the
portabilty issues, and would be a useful thing to have around.
steve d.