summaryrefslogtreecommitdiff
path: root/doc/ref/api-foreign-objects.texi
diff options
context:
space:
mode:
authorRob Browning <rlb@defaultvalue.org>2024-04-18 00:55:16 -0500
committerRob Browning <rlb@defaultvalue.org>2024-05-17 12:53:39 -0500
commit779a83d9c682345802f9a605cb8e2b4892129316 (patch)
tree9422e46246ba438870569d117688597ca36f069f /doc/ref/api-foreign-objects.texi
parent34c13e7d943067490edd52f3cd008ae74bc5647e (diff)
downloadguile-779a83d9c682345802f9a605cb8e2b4892129316.tar.gz
make-foreign-object-type: add #:super to provide superclasses
* module/system/foreign-object.scm (make-foreign-object-type): allow specification of superclasses via #:super.
Diffstat (limited to 'doc/ref/api-foreign-objects.texi')
-rw-r--r--doc/ref/api-foreign-objects.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/ref/api-foreign-objects.texi b/doc/ref/api-foreign-objects.texi
index f27f9c154..b89c2ff64 100644
--- a/doc/ref/api-foreign-objects.texi
+++ b/doc/ref/api-foreign-objects.texi
@@ -103,11 +103,14 @@ and Scheme}, for some examples.
(use-modules (system foreign-object))
@end example
-@deffn {Scheme Procedure} make-foreign-object-type name slots [#:finalizer=#f]
+@deffn {Scheme Procedure} make-foreign-object-type name slots [#:finalizer=#f] [#:supers='()]
+
Make a new foreign object type. See the above documentation for
@code{scm_make_foreign_object_type}; these functions are exactly
equivalent, except for the way in which the finalizer gets attached to
-instances (an internal detail).
+instances (an internal detail), and the fact that this function accepts
+an optional list of superclasses, which will be paseed to
+@code{make-class}.
The resulting value is a GOOPS class. @xref{GOOPS}, for more on classes
in Guile.