lua-users home
lua-l archive

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

> 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