2 Old Functions
Like
prop:procedure from
scheme/base, but even
if the property’s value for a structure type is a procedure that
accepts keyword arguments, then instances of the structure type still
do not accept keyword arguments. (In contrast, if the property’s value
is an integer for a field index, then a keyword-accepting procedure in
the field for an instance causes the instance to accept keyword
arguments.)
|
(open-output-file file [mode exists]) → input-port? | file : path-string? | mode : (one-of/c 'text 'binary) = 'binary | | exists | | : | | (one-of/c 'error 'append 'update | 'replace 'truncate 'truncate/replace) |
| | | | = | | 'error |
|
|
(open-input-output-file file [mode exists]) | | file : path-string? | mode : (one-of/c 'text 'binary) = 'binary | | exists | | : | | (one-of/c 'error 'append 'update | 'replace 'truncate 'truncate/replace) |
| | | | = | | 'error |
|
|
|
(with-output-to-file file thunk [mode exists]) → any | file : path-string? | thunk : (-> any) | mode : (one-of/c 'text 'binary) = 'binary | | exists | | : | | (one-of/c 'error 'append 'update | 'replace 'truncate 'truncate/replace) |
| | | | = | | 'error |
|
|
|
(call-with-output-file file proc [mode exists]) → any | file : path-string? | proc : (output-port? -> any) | mode : (one-of/c 'text 'binary) = 'binary | | exists | | : | | (one-of/c 'error 'append 'update | 'replace 'truncate 'truncate/replace) |
| | | | = | | 'error |
|
|
Like
open-input-file, etc. from
scheme/base, but
mode and
exists arguments are not keyword
arguments. When both
mode and
exists are accepted,
they are accepted in either order.
The free-identifier=? procedure returns
Raises
exn:fail, because the operations are not supported.
Creates and returns a new hash table. If provided, each flag
must one of the following:
By default, key comparisons use eq? (i.e., the hash table is
created with make-hasheq). If the second flag is
redundant or 'equal is provided with 'eqv, the
exn:fail:contract exception is raised.