All Manuals > KnowledgeWorks and Prolog User Guide > 7 Reference Guide

NextPrevUpTopContentsIndex

make-instance

Generic Function
Summary

Makes a CLOS or KnowledgeWorks structure object.

Signature

make-instance class &rest initargs => object

Arguments

class

A class object or a symbol.

initargs

Initialization arguments for the object.

Arguments

object

A new instance of class.

Description

A new instance of the 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.

The object is added to the object base of the current inferencing state.

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 (Unix version) - 26 Feb 2015

NextPrevUpTopContentsIndex