Re: Sandboxing in Lua 5.2
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Sandboxing in Lua 5.2
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 7 May 2011 09:41:51 -0300
> This makes me wonder again if there is any way to load code from
> files using a custom environment without the need to put all the
> file's contents in strings (nor going to C and write yourself a
> 'loadfilein' sort of function).
You mean this?
loadin(env, io.lines(file, "*L"), path)
-- Roberto