Hi, I have 2 questions:

*********************************************First
Question************************************************
Jess> (bind ?a "a")
Jess> (bind ?b "b")
Jess> (defglobal ?*i* = (call (context) getVariableNames))
Jess> (while (call ?*i* hasNext) (printout t (call ?*i* next) crlf))
b
a
*i*
FALSE

Jess> (bind ?a "a")
Jess> (bind ?b "b")
Jess> (bind ?i (call (context) getVariableNames))
Jess> (while (call ?i hasNext) (printout t (call ?i next) crlf))
Jess reported an error in routine call
       while executing (call ?i next)
       while executing (printout t (call ?i next) crlf)
       while executing (while (call ?i hasNext) (printout t (call ?i next)
crlf)).
 Message: Called method threw an exception.
 Program text: ( while ( call ?i hasNext ) ( printout t ( call ?i next )
crlf ) )  at line 4.
(root cause: java.util.ConcurrentModificationException)

why the global var runs but local var fails.


*********************************************Second
Question*****************************************************
Why when you importClass, static members of that class get imported.
when importPackage, static members of classses inside that package are not
imported

Thanks a lot.
Yuping

Reply via email to