NextPrevUpTopContentsIndex

make-instance

Generic Function
Syntax

make-instance class &rest initargs

Arguments

class is a class object or a symbol that names a class. initargs are the initialisation arguments for the class.

Description

A new instance of class class is made. The class may be either a CLOS class or a KnowledgeWorks structure class in which case the initargs are the same as those for the automatically defined constructor function of the structure.

Values

Returns the new instance.

Examples
(make-instance 'start)
(make-instance 'driver :location 'london 
                      :kb-name 'fred)
See also

def-kb-class

def-kb-struct

def-named-kb-class


KnowledgeWorks and Prolog User Guide - 4 Apr 2005

NextPrevUpTopContentsIndex