Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement current-*-port functions using parameter objects #172

Open
justinethier opened this issue Apr 3, 2014 · 0 comments
Open

Implement current-*-port functions using parameter objects #172

justinethier opened this issue Apr 3, 2014 · 0 comments

Comments

@justinethier
Copy link
Owner

From r7rs:

The procedures current-input-port and current-output-port are now parameter objects, as is the newly introduced current-error-port.

A code example from the spec is:

(parameterize
  ((current-output-port (open-output-string)))
  (display "piece")
  (display " by piece ")
  (display "by piece.")
  (newline)
  (get-output-string (current-output-port)))
==> "piece by piece by piece.\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant