[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: whatever happened to io.popen() ?
- From: tuler@...
- Date: Fri, 03 Sep 2004 00:02:34 GMT
This is true. I´ve implemented two such "clones" so far. One for luazip and
the other for windows I/O (CreateFile, etc).
"The must be a more elegant way to do this rather than cut and
paste the io library each time an io variant is required." :-)
I have been thinking about this for sometime with no progress.
The requirement is aptly demonstrated by CGILua which has at
least one *clone* of the io library in lfgci.c.
It would also be good if the io library implementation allowed for
adaption to using open/read/write/close.
The must be a more elegant way to do this rather than cut and
paste the io library each time an io variant is required.
> Or actually, a step better than that - abstract the whole lot so it's
> easy for people to create IO methods that use the same interface?
That would be nice. Suggestions?