[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dofile
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 15 Jul 2005 10:22:02 -0300
> 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