The arguments are as for defstruct
, except that in name-and-options the only valid options are :include
and :print-function
.
Defines a KnowledgeWorks structure class. Objects of these classes are analogous to Lisp structures except that they may be used in rules similarly to CLOS objects.
(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)
KnowledgeWorks and Prolog User Guide (Unix version) - 24 Mar 2017