lua-users home
lua-l archive

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

> > Actually, this code invokes pmain()
>   And it actually crashes in collectargs() because argv is NULL and there
> are no checks for that. [...]  Now, *why* argv is NULL is another question ...

Because pmain is being called in luaD_precall with no upvalues.
The point is that pmain is being called *again*, the second time
without preparation.