[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: filehandle and objects
- From: Markus Huber <pulse@...>
- Date: Fri, 19 Apr 2002 12:36:19 +0200 (BST)
> 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.
I use a watchdog script writtel in Lua which don't open a file by
themself. Instead the watchdog controls the open files and filepointers
of other programs.
Lua is easy to understand and very flexible. I hope that the new globals
statement and the object behaviour in base libs like io aren't the wrong