mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
Minor textual markups
* doc/ref/goops-tutorial.texi (Class definition): No reason to assume particular familiarity with CLOS. (Instance creation and slot access): Remove a couple of words.
This commit is contained in:
parent
67a72dc13c
commit
1dc43d57cc
1 changed files with 7 additions and 8 deletions
|
@ -49,8 +49,7 @@ module. You can do this at the Guile REPL by evaluating:
|
||||||
@node Class definition
|
@node Class definition
|
||||||
@subsection Class definition
|
@subsection Class definition
|
||||||
|
|
||||||
A new class is defined with the @code{define-class} macro. The syntax
|
A new class is defined with the @code{define-class} syntax:
|
||||||
of @code{define-class} is close to CLOS @code{defclass}:
|
|
||||||
|
|
||||||
@findex define-class
|
@findex define-class
|
||||||
@cindex class
|
@cindex class
|
||||||
|
@ -95,12 +94,12 @@ superclass of @code{<real>}, and @code{<real>} is the superclass of
|
||||||
@node Instance creation and slot access
|
@node Instance creation and slot access
|
||||||
@subsection Instance creation and slot access
|
@subsection Instance creation and slot access
|
||||||
|
|
||||||
Creation of an instance of a previously defined
|
Creation of an instance of a previously defined class can be done with
|
||||||
class can be done with the @code{make} procedure. This
|
@code{make}. This procedure takes one mandatory parameter which is the
|
||||||
procedure takes one mandatory parameter which is the class of the
|
class of the instance which must be created, and a list of optional
|
||||||
instance which must be created and a list of optional
|
arguments. Optional arguments are generally used to initialize some of
|
||||||
arguments. Optional arguments are generally used to initialize some
|
the slots of the newly created instance. For instance, the following
|
||||||
slots of the newly created instance. For instance, the following form
|
form
|
||||||
|
|
||||||
@findex make
|
@findex make
|
||||||
@cindex instance
|
@cindex instance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue