lua-users home
lua-l archive

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

>> That protocol says that the function may leave garbage and results on
>the stack.
>Hmmm. I interpreted the docs (3.16) to mean that Lua wouldn't blow up if
>garbage is left by C functions would be handled correctly, but not that
>it was a good practice to do so. But ok, whatever.

The manual is correct and so is your interpretation. The difference is that
lua.c does *not* call luaopen_* as Lua functions; it calls the directly.