lua-users home
lua-l archive

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


Hi Jonathan

> I don't know about "real" real code in the wild that broke, but it's easy to imagine something like this toy example breaking:
>
> local t = {require("mymodule"), require("anothermod"), require("lastmod")}
> assert(#t == 3) -- or code that implicitly assumes #t to be equal to 3

require() will throw an error in case of failure, so it won't reach
assert(), isn't it?

Regards,
Tomás