lua-users home
lua-l archive

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


2011/6/22 steve donovan <steve.j.donovan@gmail.com>:

> 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 - alexandre@ittner.com.br
OpenPGP pubkey 0x0041A1FB @ http://pgp.mit.edu