[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47 Other procedures


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.1 Loading files

Special Form: load filename

[R5RS] loads a Scheme source from *load-path* and current directory. File extension ".scm" can be optional.

Variable: *load-path*

Directory paths which use searching source files by procedure load. You should use procedure add-load-path when you wish to modify this variable.

Special Form: add-load-path directory-name [endflg]

A special form when you wish to modify variable *load-path*.

Special Form: use package-name

loads a Scheme package from *use-path*.

Variable: *use-path*

Directory paths which use searching source files by procedure use. You should use procedure add-use-path when you wish to modify this variable.

Special Form: add-use-path package-name [endflg]

A special form when you wish to modify variable *use-path*.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.2 Using Java classes and instances

Special Form: . instance method args
Special Form: . classname method args

calls a Java method.
When the first argument is an instance, this procedure calls the method of the instance. When the first argument is Java FQCN class name, this procedure calls the static method of the class.

Special Form: new classname args

invokes the constructor of the Java class.

Function: apply-java java-object java-method-name [args …]

calls the method of the given Java object. java-method-name must be a symbol.

Function: apply-java-static class-name java-method-name [args …]

calls the static method of the given Java class.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.3 Java system properties

Function: get-system-property prop-name

gets a Java system property, or returns #f if the property is not found.

Function: get-system-properties

gets all Java system properties as an associative list.

Function: set-system-property! prop-name prop

sets the object to Java system property.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.4 String transformation

Function: tr-string src-string old new

translates the string. This procedure works like UNIX tr(1) command.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.5 format

Function: format [output-port] format args …

[SRFI-28+] formats the string and outputs to a string or an output port.
If output-port specifies an output port, this procedure outputs a format string to the output port. If output-port is #f or not specified, this procedure returns a format string. Format string which supports in Schluessel is shown as follows.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.6 Traditional macros

Special Form: define-macro name procedure
Special Form: define-macro (name args …) procedure

defines a traditional macro.

Function: macroexpand form
Function: macroexpand-1 form

returns a result of expanding the form.

Function: gensym

creates a temporary symbol.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.47.7 Others

Reader Syntax: #[charset]

creates a character set.

Function: promise? object

returns #t if the object is a promise.

Special Form: define-feature feature-name [body …]

defines a SRFI-0 feature.

Function: command-line

[R6RS] gets command lines when the interpreter is executed.

Function: exit [code]

[R6RS] exits the interpreter. If code is #f, error code of the interpreter will be not 0.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.