Next Prev Up Top Contents Index

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


LispWorks KnowledgeWorks and Prolog User Guide - 14 Dec 2001

Next Prev Up Top Contents Index