lua-users home
lua-l archive

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


> > 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