[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc2) now available
- From: Mike Pall <mikelu-1106@...>
- Date: Wed, 22 Jun 2011 15:20:24 +0200
Roberto Ierusalimschy wrote:
> Probably LStream should be exported [...]
It's never a good idea to export an internal structure. Especially
not, if it's allocated externally. You cannot add an element or
increase the struct size without breaking the ABI. You already
made that mistake with lua_Debug, please don't make it again.
Either add an API function to create a proper file object or
disallow injecting such objects.
--Mike