This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home. For a version of this page that may be more recent, see GetFromClosedStringPort in WG2's repo for R7RS-large.

Get­From­Closed­String­Port

cowan
2015-01-14 12:43:22
2history
source

This test examines whether the SRFI 6 procedure get-output-string retrieves the value from a closed string output port. The test code is:

(define p (output-string-port)) (write 32 p) (close-output-port p) (get-output-string p)

Returns 32: Racket, Gauche, MIT, Gambit, Chicken, Kawa, Chez, IronScheme, STklos, Sizzle, Foment

Throws an exception saying the port is closed: Bigloo, Guile, SCM, SigScheme, TinyScheme, RScheme, S7, Elk, SXM, Sagittarius, Picrin

Architecture-dependent: Chibi

Returns the empty string: Inlab

No built-in support for SRFI 6 (I did not attempt to load support from implementation libraries): Scheme48/scsh, SISC, Vicare, Larceny, Ypsilon, Mosh, NexJ, JScheme, KSi, Shoe, Scheme 9, BDC, XLisp, Rep, Schemik, UMB, Llava, FemtoLisp, Dfsch, Oaklisp, Owl Lisp