Next Prev Up Top Contents Index

def-kb-class

Macro
Syntax

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

Arguments

The arguments are identical to those for defclass .

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.

Values

Returns the class object.

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


LispWorks KnowledgeWorks and Prolog User Guide - 14 Dec 2001

Next Prev Up Top Contents Index