lua-users home
lua-l archive

Re: A C++ Pattern Matching Library based on lstrlib.c

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


On Mon, Jun 1, 2015 at 10:10 PM, Patrick Donnelly <batrick@batbytes.com> wrote:
> That was maybe me [1]. There's no Lua state used though.
It really is a beautiful piece of code, just 400 lines from lstrlib.c.
Curiously enough, using it from C++ is easier because one can handle
the errors with throw(); otherwise in C you would have to do a
longjmp, which can be a world of pain for those who do not understand
it.

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