Variable: command-line-arguments
Any command-line arguments (following flags processed by Kawa itself) are assigned to the global variable ‘
command-line-arguments
’, which is a vector of strings.
Exits the Kawa interpreter, and ends the Java session. The integer value
code
is returned to the operating system. Ifcode
is not specified, zero is returned, indicating normal (non-error) termination.
Function: scheme-window
[shared
]
Create a read-eval-print-loop in a new top-level window. If
shared
is true, it uses the same environment as the current(interaction-environment)
; if not (the default), a new top-level environment is created.You can create multiple top-level window that can co-exist. They run in separate threads.
Syntax: when
condition
form...
If
condition
is true, evaluate eachform
in order, returning the value of the last one.
Syntax: unless
condition
form...
If
condition
is false, evaluate eachform
in order, returning the value of the last one.
Function: vector-append
arg
...
Creates a new vector, containing the elements from all the
arg
s appended together. Eacharg
may be a vector or a list.
Function: instance?
value
type
Returns
#t
iffvalue
is an instance of typetype
. (Undefined iftype
is a primitive type, such as<int>
.)
Converts or coerces
value
to a value of typetype
. Throws an exception if that cannot be done. Not supported fortype
to be a primitive type such as<int>
.
Syntax: synchronized
object
form
...
Synchronize on the given
object
. (This means getting an exclusive lock on the object, by acquiring its monitor.) Then execute theform
s while holding the lock. When theform
s finish (normally or abnormally by throwing an exception), the lock is released. Returns the result of the lastform
. Equivalent to the Javasynchronized
statement, except that it may return a result.