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

NextPrevUpTopContentsIndex

def-kb-class

Macro
Summary

Defines a class for use in the object base.

Signature

def-kb-class class-name superclass-list slot-descriptions &rest options => class

Arguments

The arguments are identical to those for defclass.

Values

class

The named class object.

Description

Defines a new CLOS class as defclass does. However, if none of the given superclasses is a subclass of standard-kb-object, then standard-kb-object is added to the list of superclasses.

Examples
(def-kb-class vehicle () ((driver :initarg :driver)))
(def-kb-class truck (vehicle)
  ((load :accessor truck-load)))
See also

def-named-kb-class
def-kb-struct


KnowledgeWorks and Prolog User Guide (Macintosh version) - 26 Feb 2015

NextPrevUpTopContentsIndex