Next Prev Up Top Contents Index

def-kb-struct

Macro
Syntax

def-kb-struct name-and-options { slot-description }*

Arguments

The arguments are as for defstruct , except that in name-and-options the only valid options are :include and :print-function .

Description

Defines a KnowledgeWorks structure. These are analogous to Lisp structures except that they may be used in rules similarly to CLOS objects.

Values

Returns the name of the structure.

Examples
(def-kb-struct start)
(def-kb-struct (named-kb-struct
  (:print-function print-named-kb-struct))
  (name (gensym 'named-kb-struct)))
(def-kb-struct (possible-trucks-for-load
  (:include named-kb-struct))
  load trucks)
See Also

def-kb-class


LispWorks KnowledgeWorks and Prolog User Guide - 14 Dec 2001

Next Prev Up Top Contents Index