Version: 5.3.0.1
5 Class 3
Imports all the modules named module-names.
Makes all of the ids available to other modules.
| (define-class class-name | | super-spec | | implements-spec | | fields-spec | | constructor-spec | | method-spec ...) |
|
| |
| super-spec | | = | | | | | | | | | (super super-name) | | | | | | | | implements-spec | | = | | | | | | | | | (implements interface-name ...) | | | | | | | | fields-spec | | = | | | | | | | | | (fields field-name ...) | | | | | | | | constructor-spec | | = | | | | | | | | | (constructor (arg ...) body ...) | | | | | | | | method-spec | | = | | | | | | | | | |
|
Defines a new class named
class-name, just as with
class/2. However, the body of each method may use
set-field! to change the value of a field. For example.
Changes the value of field f to be the result of e.
| (super class-or-interface-name) |
|
|
|
|
|
|
|
|
|
| (send object message arg ...) |
|
These have the same meaning as in
class/0.
This has the same meaning as in
class/1.
}