gets ambiguity and enum suggestion
Smelly Pooh <[email protected]> Sat, 16 Nov 2002 14:16:09 +0000
| Newsgroups | gmane.comp.lang.goo.general |
|---|---|
| Organization | Milky Moos |
| Message-ID | <[email protected]> |
Version .146 The gets method returns an empty string "" whether we're at EOF or reading an empty line, peek never seems to return EOF and I don't want to mix get with gets calls. There also seems to be a bug when calling peek just before and after EOF is returned by get. Each time peek is called #\ is returned, then calling get on the port also returns #\ instead of EOF On the topic of the enum method, can it be made to be more generic than taking <col> as its first argument? That would allow types such as <port> to work with the enum protocol, and simplify cases where people want to create enums, but not necessarily a full fledged collection