Node:Basic Instance Creation, Next:Customizing Instance Creation, Up:Creating Instances
To create a new instance of any GOOPS class, use the generic function
make
or make-instance
, passing the required class and any
appropriate instance initialization arguments as keyword and value
pairs. Note that make
and make-instances
are aliases for
each other - their behaviour is identical.
make | generic |
make (class <class>) . initargs | method |
Create and return a new instance of class class, initialized using
initargs.
In theory, initargs can have any structure that is understood by
whatever methods get applied when the In practice, specialized GOOPS processes initialization argument keywords automatically for slots
whose definition includes the |
make-instance | generic |
make-instance (class <class>) . initargs | method |
make-instance is an alias for make .
|