[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Writing to a file from C
- From: roberto@... (Roberto Ierusalimschy)
- Date: Mon, 10 Sep 2007 08:25:56 -0300
> Mark Edgar wrote:
> >[...]
> > #define topfile(L) ((FILE **)luaL_checkudata(L, 1, LUA_FILEHANDLE))
>
> It this likely to keep working in future versions? Poking around in someone
> else's userdata seems... well... a bit *intrusive* for my liking, really.
Usually you should not poke around in someone else's userdata, unless
invited. In this particular case, the definition of LUA_FILEHANDLE in
a header file is the "invitation".
-- Roberto