[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A C++ Pattern Matching Library based on lstrlib.c
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 2 Jun 2015 12:21:58 +0200
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.