I think Alan Moore wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Would it be possible to have the (import) function fail or give a warning
> when the specified package and/or class doesn't exist. Currently,
> 
> (import com.package.doesnt.exist.MyMispeledClass)
> 
> doesn't give any indication that something is wrong.
> 

This could be done easily enough for specific classes by trying to
load them, but for packages, I'm not so sure. A Java compiler controls
its own classloader, so it knows where classes can be found; that
classloader can search its classpath for a package. But Jess has to
live embedded inside other software, and follow the rules of whatever
environment it's in -- i.e., it doesn't and can't have its own
classloader, so it really doesn't know where to look for packages.

As usual, suggestions welcome.



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