1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +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:
Neil Jerram 2010-12-06 20:24:58 +00:00
parent 67a72dc13c
commit 1dc43d57cc

View file

@ -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