Methods are possibly overloaded typed functions whose syntactic binding resides in a namespace reserved to an object–type and that are accessible only through an instance of such object–type.
The syntactic bindings method
, virtual-method
and
seal-method
are used as clause keywords in uses of
define-record-type
to define methods and virtual methods for a
record–type; they can be used any number of times in the same
define-record-type
macro use.
The clause method
is also accepted by
define-label-type
, define-interface-type
and
define-mixin-type
.
The clauses virtual-method
and seal-method
are also
accepted by define-mixin-type
.
• methods concrete: | Concrete methods. | |
• methods virtual: | Virtual methods. | |
• methods sealing: | Sealing methods. | |
• methods calling: | Calling object-type methods. |