Version: 5.0.1
3 Classes and Objects
This library is
unstable;
compatibility will not be maintained.
See
Unstable for more information.
This module provides tools for classes, objects, and mixins.
3.1 Predicates and Contracts
Recognizes classes and interfaces.
Recognizes objects which are instances of all the given classes and interfaces.
Recognizes classes which are subclasses (not strictly) and implementations,
respectively, of all the given classes and interfaces.
3.2 Mixins
Returns c% if it implements i<%>; otherwise, returns
(mx c%).
3.3 Methods
(send+ obj [message arg ...] ...) |
Sends each message (with arguments) to obj, then returns obj.
Examples: |
|
> (send+ (new c%) [say 'Hello] [say 'Good-bye]) |
|
(object:c% ...) |
Sends the message to each object in the list
objs, returning
(void).
Examples: |
|
|
Hello, World! | Good-bye, World! |
|