[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting the value of Lua's io.output() from the C API
- From: Peter Aronoff <telemachus@...>
- Date: Tue, 11 Dec 2012 15:25:17 -0500
On Tue Dec 11 2012 @ 5:07, Roberto Ierusalimschy wrote:
> In 5.2 the current output file is stored in the registry, so it is
> easy to access it from outside the library. (Currently the key is not
> exported in a .h file, but it is easy to copy it: "_IO_output".)
Thank you for this. I'll definitely look.
I would love still to hear from any and all about the larger issue (and for
5.1 I suppose): namely, would it be unusual or bad to use call a Lua
function from a C module that was in turn about to return a result to Lua?
Thanks, Peter
--
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System