Buy GNU books!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
When GOOPS is loaded, many of Guile's primitive procedures can be extended by giving them a generic function definition that operates in conjunction with their normal C-coded implementation. For primitives that are extended in this way, the result from the user- or application-level point of view is that the extended primitive behaves exactly like a generic function with the C-coded implementation as its default method.
generic-capability? predicate should be used to determine
whether a particular primitive is extensible in this way.
#tif primitive can be extended by giving it a generic function definition, otherwise
Even when a primitive procedure is extensible like this, its generic
function definition is not created until it is needed by a call to
define-method, or until the application explicitly requests it
Once the generic function definition for a primitive has been created,
it can be retrieved using
primitive-generic-generic raises an error if primitive
is not a primitive with generic capability, or if its generic capability
has not yet been enabled, whether implicitly (by
or explicitly (by
Note that the distinction between, on the one hand, primitives with additional generic function definitions and, on the other hand, generic functions with a default method, may disappear when GOOPS is fully integrated into the core of Guile. Consequently, the procedures described in this section may disappear as well.
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|