Version: 4.1.3
2 Old Functions
Like apply from scheme/base, but without support
for keyword arguments.
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 same as syntax->datum and datum->syntax.
The module-identifier=?, etc. functions are the same as
free-identifier=?, etc. in scheme/base.
The free-identifier=? procedure returns
Creates a namespace with mzscheme attached. If the
mode is empty, the namespace’s top-level environment is left
empty. If mode is 'initial, then the namespace’s
top-level environment is initialized with
(namespace-require/copy 'mzscheme). See also
make-base-empty-namespace.
Equivalent to (namespace-require `(for-syntax ,req)).
Raises exn:fail, because the operations are not supported.
Returns #t if v like a hash table created by
make-hash-table or make-immutable-hash-table with
the given flags (or more), #f otherwise. Each
provided flag must be distinct and 'equal cannot be
used with 'eqv, otherwise the exn:fail:contract
exception is raised.
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.
Like make-immutable-hash, make-immutable-hasheq, or
make-immutable-hasheqv, depending on whether an
'equal or 'eqv flag is provided.