rule-printer: CF 0.000 ?
Reini Urban <[email protected]> Tue, 12 Oct 2004 01:47:07 +0200
| Newsgroups | gmane.lisp.lisa.general |
|---|---|
| Message-ID | <[email protected]> |
Paolo Amoroso schrieb:
> 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>
Off topic, but this CF msg made me worrying:
The default CF cannot be 0.000, it should be 1.000 IMHO.
Shouldn't we omit this funny "CF is 0.000" if no :cf is defined?
Or fix the printed string to something more certain ("CF is 1.000").
> LISA-USER> (lisa::rule-comment *)
> "Frodo fires and focuses on :wizards."
> LISA-USER>
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
-------------------------------------------------------
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