[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (alpha) now available
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 1 Aug 2014 09:10:50 +0200
On Fri, Aug 1, 2014 at 9:02 AM, Dirk Laurie <[email protected]> wrote:
> n1, n2 = string.scanb(str,"%fb%8l")
>
> instead of some code that I am too terrified even to attempt.
+1 for this - more efficient since less Lua->C call overhead for multiple items.
But then, we're getting back to struct:
http://www.inf.puc-rio.br/~roberto/struct/
which does this (and more)