lua-users home
lua-l archive

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



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? -- Roberto
--
db