I am replying to an old post of mine. It referred to the absence of a method to undefine a module. Now I have just realized that in the JessEvent class there isn't a way of being notified of a DEFMODULE event. Why is that?
It would seem to me that just as it is possible to add/remove/be notified about defrules, the same should be possible with defmodules. Henrique Henrique Lopes Cardoso wrote: > friedman_hill ernest j wrote: >> I think Henrique Lopes Cardoso wrote: >> [Charset iso-8859-1 unsupported, filtering to ASCII...] >> >>> Hello, >>> >>> I was looking for an "undefmodule" function in Jess, but could not >>> find it. >>> How can I undefine a module? Does it need to be empty? That is, with >>> no rules or facts? >>> >>> >> >> There isn't one. I could record this as a request for enhancement; can >> you explain why it would be useful? >> > In my system, modules can be created at run-time in the RHS of rules, > and rules are added to them. A module has a lifetime at the end of > which it should be removed. > Therefore, I would appreciate if I could have an "undefmodule" function. > > A shorter answer to your question would be: why is the undefrule useful? > > Thanks. > > Henrique >> >> --------------------------------------------------------- >> Ernest Friedman-Hill Advanced Software 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] >> -------------------------------------------------------------------- >> >> >> > -- ----- - - - - - - - - - - - - Henrique Lopes Cardoso DEEC/FEUP Rua Dr. Roberto Frias | 4200-465 Porto PORTUGAL (+351)225081400 ext.1315 [EMAIL PROTECTED] | www.fe.up.pt/~hlc ----- - - - - - - - - - - - - -------------------------------------------------------------------- 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] --------------------------------------------------------------------
