lua-users home
lua-l archive

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


> 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