I think Richard Patten wrote:
> 
> Hello Everybody
>    I have a java class that looks like this.
...
>     public EventInfo(String eventName, String[] userData) {
...


> Jess> (bind ?ht (new Event.EventInfo "DatabaseOverload" {"1" "2" "3" "4"}))
> 

Where did you get this syntax from, with the curly braces? Maybe it's
from a dialog of LISP I'm not familiar with? In any event, there is no
such syntax in Jess.

> 
> If I want to create and Array of String (any object for that matter) in JESS how do 
>I do it.
> 

The function call (create$ "1" "2" "3" "4") makes a Jess list
containing four strings; if you pass this as the second argument to
your constructor, it will be automatically converted to a String[]. In
general, Jess will convert lists to arrays, and arrays to lists, as
appropriate, guessing the type to create based on the type of the
formal parameter in Java.

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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