lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Bug in Lpeg v0.11/v0.12??
From
: Juan Carlos González Amestoy <jcgamestoy@
...
>
Date
: Tue, 7 May 2013 11:23:28 +0200
The following code:
local re=require('re')
local a="[c]?"
re.compile(a)
shows the error: (using luajit in linux / macosx)
ERROR: bad argument #1 to '?' (lpeg-pattern expected, got string)
if line 2 is changed to:
local a="[cd]?"
works ok.
in lpeg v0.10 both works ok.
--
Juan Carlos González Amestoy
Follow-Ups
:
Re: Bug in Lpeg v0.11/v0.12??
,
Roberto Ierusalimschy
Prev by Date:
Re: How to use functions from another script?
Next by Date:
Unofficial Lua FAQ needs updating
Previous by thread:
Re: How to use functions from another script?
Next by thread:
Re: Bug in Lpeg v0.11/v0.12??
Index(es):
Date
Thread