I think Henrik Eriksson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi Dona,
> 
> I am not sure I understand your problem precisely. Perhaps you could use
> the function "set-current-module" instead of "focus" to set the module
> before calling mapclass.
> 
> On Wed, 14 Dec 2005, Dona Mommsen wrote:
> >
> > (defmodule ask)
> > (defrule ask::ask-question-by-id ...)
> > (focus MAIN)
> > (mapclass Question)
> >
> > instances of the class 'Question' are not added to the module that I
> > expect. Although the focus is on MAIN, they are mapped to module ask,

Henrik is absolutely right. The "current module" (the one in which
constructs will be defined, by default) and the "focus module" (this
one from which rules will be fired next) are two separate
concepts. Focus is a runtime thing; the current module is what you
should be using here.



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

Reply via email to