[r6rs-discuss] ANN: R6RS benchmarks

Abdulaziz Ghuloum aghuloum at cs.indiana.edu
Sat Dec 1 08:54:35 EST 2007


On Dec 1, 2007, at 8:31 AM, William D Clinger wrote:

> Aziz wrote:
>> Did I miss the errata somewhere?
>
> No.  The grammar was changed in R5.97RS, long after I had
> written the tests from which the read0 benchmark was
> extracted.  I will correct the comment, but this correction
> does not change the executable part of the read0 benchmark.

This may be obvious to you, but I'm having a hard time figuring
this out.

How does this work exactly?

(dotest (teststring #\" #\linefeed #\return #\return #\linefeed
                     #\x85 #\return #\x85 #\x2028 #\")
         (list (teststring #\linefeed #\linefeed #\linefeed
                           #\linefeed #\linefeed #\linefeed)))

Basically, you're doing (open-string-input-port s) which
"returns a textual input port ... may or may not have a
transcoder ... if it does, the transcoder is implementation
dependent"

Where did you say in your code that the eols should turn to
linefeeds?  Isn't an implementation allowed to use an eol-
style of "none" in their implementation-dependent transcoder
for textual ports opened with open-string-input-port?




More information about the r6rs-discuss mailing list