lua-users home
lua-l archive

Re: [ANN] Lua 5.3.0 (alpha) now available

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


2014年08月01日 9:10 GMT+02:00 steve donovan <steve.j.donovan@gmail.com>:
> On Fri, Aug 1, 2014 at 9:02 AM, Dirk Laurie <dirk.laurie@gmail.com> 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)
For Lua, one could do with something that is to struct as Lua patterns
are to lpeg.

AltStyle によって変換されたページ (->オリジナル) /