[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 5.2 luaL_execresult and luaL_fileresult
- From: liam mail <liam.list@...>
- Date: Wed, 29 Jun 2011 23:48:17 +0100
On 26 June 2011 10:53, liam mail <firstname.lastname@example.org>
Maybe I am missing something yet both of these functions seems to be lacking any sort of meaningful documentation which explains the purpose and usage of them.
Looking at the documentation that is written for these two functions makes them sound like they are actually internal functions for which I do not see the purpose of them. ie why would the C API have functions to generate return values for Lua calls and how would you use them?
I really do not know so any enlightenment would be gratefully received.
This function produces the return values for file-related functions in the standard library (io.open, os.rename, file:seek, etc.).
This function produces the return values for process-related functions in the standard library (os.execute and io.close).
For the benefit of anybody searching this list some time in the future wondering what these functions are for:
From an IRC conversation I am lead to believe that these functions are ones which the authors provide so that people who write Lua modules in C can generate an error message which is consistant with Lua core generated errors( io.open et al). This was not apparent to me and it feel it would be a good idea to include such information in the documentation for these functions, rather than leaving it as implied if this is the case.