I think Alan Moore wrote:
> How about returning the rule itself? An alternative would be to return the
> current activation.
> 
> My 2cts...

I like the getCurrentActivation() idea. I imagine people could get into
all kinds of mischief with that :) So there can be
getCurrentActivation(), and getCurrentRuleName() which delegates to it.



> 
> alan
> 
> I think Richard Kasperowski wrote:
> > 
> > Can I request a new feature?  It would be nice if there were a built-in 
> > function like (rule) or (this) or (self) that would return the rule 
> > object when you evaluate it on the RHS of a rule.
> 
> OK, I'll stick it in as a function on Rete, so you can call it like
> 
>         (bind ?rule ((engine) getCurrentRuleName))
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to