Skip to content

Commit

Permalink
Merge pull request #1530 from clasp-developers/gray-1
Browse files Browse the repository at this point in the history
Add generic setf for gray:stream-element-type
  • Loading branch information
Bike authored Dec 13, 2023
2 parents 40831ed + 5674652 commit b92fa26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
for Gray streams.
* Generic versions of `cl:pathname` and `cl:truename`, both of which
are available after the Gray stream modules is required.
* Generic `(setf gray:stream-element-type)` for basic support of
bivalent streams.

## Changed
* `cl:format` and `pprint` now respect the value returned bye
Expand Down
6 changes: 6 additions & 0 deletions src/lisp/kernel/clos/streams.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
STREAM. The class FUNDAMENTAL-CHARACTER-STREAM provides a default method
which returns CHARACTER."))

(defgeneric (setf stream-element-type) (new-value stream)
(:documentation
"Set the type specifier of the kind of object returned by the
STREAM. There is no default method as this is optional and only
needed for bivalent streams."))

(defgeneric stream-finish-output (stream)
(:documentation
"Attempts to ensure that all output sent to the Stream has reached
Expand Down

0 comments on commit b92fa26

Please sign in to comment.