lua-users home
lua-l archive

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


Hallo,

Jamie Webb wrote:

You can't associate metatables with light userdata, but they are useful in other contexts. The I/O standard library stores FILE* pointers in light user data.


Actually, the FILE pointers are stored in pointer-sized full userdata.
Hence you can do file:read(), etc.


	Oops, my bad! Thanks for correcting me.

-alex