Re: LPeg 0.9
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPeg 0.9
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2008年10月30日 14:37:54 -0200
> There appears to be a bug in LPEG 0.9's locale function; if called
> with more than 1 argument, then it checks that the first argument is a
> table, but then does setfields on the last argument and returns the
> last argument:
>
> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > require "lpeg"
> > =lpeg.version()
> 0.9
> > =lpeg.locale({}, _G) --> _G.print is now a pattern
> error calling 'print' (attempt to call a userdata value)
Many thanks for the feedback. This will be fixed in the next release.
-- Roberto