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.
Source for wiki GetFromClosedStringPort version 1
author
cowan
comment
ipnr
127.11.51.1
name
GetFromClosedStringPort
readonly
0
text
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
time
2015-01-14 12:38:03
version
1