lua-users home
lua-l archive

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


I would dearly love a slow, painstakingly detailed explanation of
the metable implementation.
+++++++++++++++++++++++++++++++++
>>In the code below how is it that the __index table recurses to
>>itself? Why is this done?
>
>To implement methods for file handles (which are represented as userdata, and
>so need an __index metamethod).
>
>>and, how does _input and _output make it into the metatable?
>
>You seem to be running Lua 5.0 (beta)!
>--lhf