This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: port-line bug details & patch question.


Greg Harvey <Greg.Harvey@thezone.net> writes:

 > Of course, this is assuming that anyone is ever going to use a port,
 > with scm_do_read_line, that doesn't use a newline as a line
 > incrementor, but wants to take the port-line of that port. I'd think
 > that probability aproaches 0, since 'lines' probably won't make much
 > sense there, anyway.

I'd expect periodic bug reports from people wondering why port-line is
different after reading a file by read-char vs by read-line, but this
is when checking the line number after getting eof-object, so maybe
it's sufficient to say in the documentation that port-line is
undefined after end of file, and this is why.

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il