lua-users home
lua-l archive

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


On Thu, Apr 11, 2013 at 2:50 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

LPeg's re does not use _ENV. It explicitly builds its table and returns it.

Sorry about that, I was looking at re.lua for the older version.

Anyway, can't you hanlde all them the same way, by packing each module
inside a function, more or less like this?

That's exactly what I will do.  It isn't a big problem really.  Neither are the limitations of the compatible module().