lua-users home
lua-l archive

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

2011/6/22 steve donovan <>:

> Previously people could hijack the existing file objects by packing
> their own FILE* in the LUA_FILEHANDLE userdata, which was just FILE**.
> (...)

Documenting this feature or creating an API for it will also ease the
binding of functions which received FILE pointers. Sometimes the most
natural solution is to pass a standard Lua file object in the Lua
version of that function -- not so easy to do without such a trick
with undocumented features. I got some of these and they will bite me
in the upgrade to Lua 5.2.

Alexandre Erwin Ittner -
OpenPGP pubkey 0x0041A1FB @