lua-users home
lua-l archive

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


So it's basically just pcall(assert(loadfile(...)))?

My point is, if we can write our own dostring, can't we just as easily write our own dofile?

On Sat, 03 Apr 2010 11:17:58 -0600, steve donovan <steve.j.donovan@gmail.com> wrote:

On Sat, Apr 3, 2010 at 2:32 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
loadfile is already called in protected mode (via lua_load).

I stand corrected - even more reason to keep this very useful
function!  If it were deprecated, then people would simply have to
re-invent it.