[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: filehandle and objects
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 19 Apr 2002 17:12:05 -0300
> > We also changed the io library; e.g. files act as objects (f =
> > io.open(...); f:read(...); f:write(...)).
>
> Hope that f is still useable as a real filehandle.
`f' is as "real" as it was before. We did not change that. To create
a filehandle, create a new userdata and set its metatable to the
filehandle's metatable (available through the registry).
-- Roberto