lua-users home
lua-l archive

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


----- Original Message -----
>Why is it necessary for the C API to return the number of results it pushed
>onto the stack?  Wouldn't it would be simpler and less error-prone for Lua
>to infer that information directly from the stack?

Cause that would prevent using the stack during your api function.. And
since the is no more begin/end block it would be impossible to push stuff on
the stack to perform table functions ect....

/Erik