mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
doc: Fix `merge-generics' example.
* doc/ref/goops.texi (Merging Generics): Change (my-module) example to use (oop goops) and use the right syntax for #:duplicates. Reported by David Pirotte <david@altosw.be>.
This commit is contained in:
parent
0adcd1bd93
commit
21b6df302f
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
@c -*-texinfo-*-
|
@c -*-texinfo-*-
|
||||||
@c This is part of the GNU Guile Reference Manual.
|
@c This is part of the GNU Guile Reference Manual.
|
||||||
@c Copyright (C) 2008, 2009
|
@c Copyright (C) 2008, 2009, 2011
|
||||||
@c Free Software Foundation, Inc.
|
@c Free Software Foundation, Inc.
|
||||||
@c See the file guile.texi for copying conditions.
|
@c See the file guile.texi for copying conditions.
|
||||||
|
|
||||||
|
@ -822,9 +822,10 @@ Here is an example:
|
||||||
#:export (x y z ...))
|
#:export (x y z ...))
|
||||||
|
|
||||||
(define-module (my-module)
|
(define-module (my-module)
|
||||||
|
#:use-module (oop goops)
|
||||||
#:use-module (math 2D-vectors)
|
#:use-module (math 2D-vectors)
|
||||||
#:use-module (math 3D-vectors)
|
#:use-module (math 3D-vectors)
|
||||||
#:duplicates merge-generics)
|
#:duplicates (merge-generics))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
The generic function @code{x} in @code{(my-module)} will now incorporate
|
The generic function @code{x} in @code{(my-module)} will now incorporate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue