|
On Apr 05, 2006, at 12:58, D Burgess wrote:
David Jones wrote:Having to implement a C-like stream interface on top of an abstraction that didn't provide anything like ungetc?Excellent guess. Does not port so well and yes the the code to handle is not difficult, but I would rather not write the code.
Well, nor would I. That's why I'm glad it's specified in the C standard so that somebody else can write it, and I can moan about how bad their implementation is instead.
So how do you suggest the two bits of Lua that use ungetc are changed so that they don't use ungetc?
drj