(rules) just prints, returning nil. (foreach ?v (explode$ (ppdefrule *)) (ppdefrule ?v)) -W
On Wed, Sep 2, 2009 at 11:25 AM, jo <[email protected]> wrote: > Hi > > I tried to dump the rules loaded at some point in time as follows but it > did not work out... > I do not know the names beforehand and have to figure out why they are not > firing... > > Jess> (rules) > For a total of 0 rules in module MAIN. > Jess> (defrule x (f $? )=>) > TRUE > Jess> (rules) > MAIN::x > For a total of 1 rules in module MAIN. > Jess> (bind ?rulelist (rules)) > MAIN::x > For a total of 1 rules in module MAIN. > Jess> ( foreach ?v ?rulelist (ppdefrule ?v )) > Jess reported an error in routine foreach > while executing (foreach ?v ?rulelist (ppdefrule ?v)). > Message: Argument must be ValueVector, Collection, or Iterator: nil. > Program text: ( foreach ?v ?rulelist ( ppdefrule ?v ) ) at line 6. > Jess> (printout t ?rulelist) > nil > > Jess> > > Kind Regards, > joe > > > > > > -------------------------------------------------------------------- > 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]. > -------------------------------------------------------------------- > >
