lua-users home
lua-l archive

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


On Tue, Apr 6, 2010 at 4:05 PM, Patrick Donnelly <batrick@batbytes.com> wrote:
>
> This isn't quite true. dofile is not protected from errors during
> load. Apparently the only functional difference between the two code
> snippets is the stack traceback:

So the only difference is the stack traceback, there seems no reason
using assert instead of dofile(), and I think dofile() is better in
this case, right?