lua-users home
lua-l archive

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

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.