[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: mettables and the io library
- From: "D Burgess" <db@...>
- Date: Tue, 19 Aug 2003 16:46:3 +1000
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)!