Next: , Previous: , Up: Top   [Contents][Index]


7 Methods and virtual methods

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.