trivial-gray-streams/trivial-gray-streams
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
trivial-gray-streams ==================== Gray streams is an interface proposed for inclusion with ANSI CL by David N. Gray in Issue STREAM-DEFINITION-BY-USER (http://www.nhplace.com/kent/CL/Issues/stream-definition-by-user.html). The proposal did not make it into ANSI CL, but most popular CL implementations implement this facility anyway. This system provides an extremely thin compatibility layer for gray streams. How to use it ============= Use the package TRIVIAL-GRAY-STREAMS to refer Gray stream classes to inherit from, generic functions to implement. Extensions ========== The Gray proposal was made before the ANCI CL standard was finalized, and was based on the Common Lisp The Language book. The book does not have cl:file-position, cl:read-sequence, cl:write-sequence functions. That's why (we think) the Gray proposal does not specify their counterparts: stream-file-position, stream-read-sequence, stream-write-sequence. trivial-gray-streams supports these functions: Generic function STREAM-READ-SEQUENCE (stream sequence start end &key) Generic function STREAM-WRITE-SEQUENCE (stream sequence start end &key) Notice that we use two required arguments and allow additional keyword arguments. Your methods on these function should have compliant lambda lists: (stream sequence start end &key) Generic function STREAM-FILE-POSITION (stream) => file position Generic function (SETF STREAM-FILE-POSITION) (position-spec stream) => successp
About
Portability library for CL gray streams.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published