Next: , Previous: , Up: API Reference   [Contents][Index]


3.2 Goops

Grip functionality that extends and/or specializes Goops:

(use-modules (grip goops))

This module import and re-export the public interface of the Guile module (oop goops). It also imports the Guile module (oop goops describe), which defines six describe methods that this module also re-export.

Syntax and Methods

define-method*
class-direct-virtual-slots
class-virtual-slots
describe

Syntax and methods

Syntax: define-method* (generic parameter …
[#:optional vardef…]
[#:key vardef… [#:allow-other-keys]]
[#:rest var | . var])
body1 body2 …

Returns a method.

define-method* is like define-method, except with some extensions to allow optional and keyword arguments.

Please refer to lambda* and define* for a complete description of how you may specify and refer to #:optional and #:key arguments. For a simple example, see the definition of get-color in the module (grip clutter color).

Method: class-direct-virtual-slots (class <class>)

Return a list containing the slot definitions of the direct slots of class for which the allocation is #:virtual.

Method: class-virtual-slots (class <class>)

Return a list containing the slot definitions for all class slots, including any slots that are inherited from superclasses, for which the allocation is #:virtual.

Method: describe (x <top>)
Method: describe (x <procedure>)
Method: describe (x <object>)
Method: describe (x <class>)
Method: describe (x <generic>)
Method: describe (x <method>) . omit-generic

Retrieves and displays ‘sensible’ information upon x.


Next: , Previous: , Up: API Reference   [Contents][Index]