[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pack, struct and 5.2?
- From: Daurnimator <quae@...>
- Date: Sun, 21 Aug 2016 17:09:11 +1000
On 21 August 2016 at 13:34, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
> I've just dusted off some old 5.1 ESRI Shapefile reading code that uses LHF's lpack. What's happened to lpack in the last few years?
>
> If I understand correctly, Roberto's struct library superseded pack? I also somehow got the idea that 5.2 had a string.pack and unpack that did the same job, but maybe I'm just confusing pack moving into table.pack?
>
> If I should upgrade to struct, how compatible are they?
5.3 gained string.pack and string.unpack.
They are *almost* compatible with Roberto's struct library.
compat-5.3 backports string.pack and string.unpack (among other
things) to 5.1 and 5.2
https://github.com/keplerproject/lua-compat-5.3