RE: Rule docstrings

"Young, David" <[email protected]> Mon, 11 Oct 2004 14:43:24 -0400
Newsgroups gmane.lisp.lisa.general
Message-ID <A24502FBD4FB85468D5781CD84213E408A964A@mail01.bhusa.bhsoftware.com>
That's a good idea, and an oversight on my part. I'll export the reader for
that slot, and others that were missed perhaps, for the next release. Thanks
much...

Cheers, David

-----Original Message-----
From: Paolo Amoroso [mailto:[email protected]]
Sent: Monday, October 11, 2004 2:23 PM
To: LISA
Subject: [Lisa-users] Rule docstrings


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
_______________________________________________
Lisa-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lisa-users

This email message is for the sole use of the intended recipients(s) and may contain confidential and privileged information of Bloodhound Software, Inc.. Any unauthorized review, use, disclosure is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.


-------------------------------------------------------
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