lua-users home
lua-l archive

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


> (BTW, loadfile is quite insecure to be allowed in sandboxes, as it
> may load binary files that can crash your program.)

Point taken. How does require() get around this problem, if I may ask?
Also, now that I think about it, wouldn't require() also load files
into the global environment rather than the caller's environment? I'm
not sure on that, I haven't tried.

~Jonathan