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

gets ambiguity and enum suggestion



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