Hi Felix,

BTW -- I think that Brian was intending

;; Set the focus stack
(focus A B)
(run)

There is nothing to preclude you from using modules and salience together.
There is an essay on the proper use of salience on the Jess wiki here
<http://www.jessrules.com/jesswiki/view?SalienceUsageTips>.  Salience is
best used to control the priority of sets of rules within a module.  It
should NEVER be used to control the priority of any individual rule.  Of
course, a set of rules may have just a single member at a particular time,
but the principle holds in general as stated.  The best way to think about
salience is that it is to liken it to the old GOTO statement; terrible if
you use it to create spaghetti code, but useful if you take care to create
"structured gotos" (e.g. labled statements).  For CS historians, see
here<http://pic.plover.com/knuth-GOTO.pdf>

Reply via email to