Rule docstrings

Paolo Amoroso <[email protected]> Mon, 11 Oct 2004 20:22:37 +0200
Newsgroups gmane.lisp.lisa.general
Organization Paolo Amoroso - Milano, ITALY
Message-ID <[email protected]>
A useful undocumented feature of LISA is that rules can have a
documentation string.  But, as far as I know, there is no exported
function for later accessing it.  Here is a sample usage with the
contexts demo:

LISA-USER> (defrule frodo (:context :hobbits)
	     "Frodo fires and focuses on :wizards."
	     (frodo)
	     =>
	     (format t "frodo fired; focusing on :wizards.~%")
	     (assert (gandalf (name gandalf)))
	     (focus :wizards))
; Compiling LAMBDA NIL: 
; Compiling Top-Level Form: 
#<RULE HOBBITS.FRODO, CF is 0.000>
LISA-USER> (lisa::rule-comment *)
"Frodo fires and focuses on :wizards."
LISA-USER> 


Paolo
-- 
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl