> From [EMAIL PROTECTED] Fri Sep 18 16:49:18 1998
>
> In implementing some KQML processing routines in jess I have decided that a
> lot of things would be a lot easier if I could do one of the following: make a
> list within a list, or make a deftemplate within a deftemplate. For example
> if I could have a
>
> (deftemplate (slot foo))
>
> where somehow foo is anothe deftemplate with its own slots and multislots.
> Or, if I could make a fact (list) of the form (a b (c d) e) without needing to
> make it a deftemplate. Making a multifield with (assert (create$ a b (create$
> c d) e)) will "flatten" the list so the actual fact is (a b c d e) instead.
I've had this need too, and have ended up implementing it on top of the
flat lists, using special delimeter symbols (effectively standing for
parentheses). This is, of course, ugly and and messy, but it is also
one of the things that makes CLIPS simpler than, say, Lisp (well -- not
syntactically simpler, but simpler to learn to use well, IMO).
Sidney Bailin
Knowledge Evolution, Inc.
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------