[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: mettables and the io library
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 18 Aug 2003 22:28:00 -0300
>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