lua-users home
lua-l archive

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


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