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)


2008/10/10 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> o link de download aponta para "lpeg-0.9.1.tar.gz", mas
>> o tarball e' lpeg-0.9.tar.gz"...
>
> Thanks! Sorry about that.
>
> -- Roberto
>