[r6rs-discuss] Question on buffer modes

From: R. Kent Dybvig <dyb>
Date: Thu, 24 May 2007 09:18:42 -0400

> But there are also some other situations where it's desirable
> to be able to close the underlying standard input and standard
> output ports. Returning a fresh port each times makes
> (close-output-port (standard-output-port)) a no-op.

You might be able to accomplish this by closing the port returned by
current-input-port or current-output-port, but whether doing so actually
closes the underlying O/S file descriptor is up to the implementation.

Kent
Received on Thu May 24 2007 - 09:18:42 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC