lua-users home
lua-l archive

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


> a) dofile does not perform a  luaL_searchpath(), which means we have
> a minor inconsistency in behaviour where loadfile() and require() will
> search the path and dofile() does not.

We removed the path option from loadfile, so that inconsistency is
already solved :) And require is a quite different beast: one of its
main roles is to search modules.


> b) dofile() does not pass parameters to the chunk as Luiz points out.

As he pointed out, use loadfile in that case.

-- Roberto