Next: Input Port Operations, Previous: Port Types, Up: Port Primitives [Contents][Index]
The procedures in this section provide means for constructing ports, accessing the type of a port, and manipulating the state of a port.
Returns a new port with type port-type and the given state. The port will be an input, output, or I/O port according to port-type.
Returns the port type of port.
Returns the state component of port.
Changes the state component of port to be object. Returns an unspecified value.
Equivalent to
(port-type/operation (port/type port) symbol)
Equivalent to
(port-type/operation-names (port/type port))
Returns an object that satisfies the predicate eof-object?
. This
is sometimes useful when building input ports.