Yes, it's possible. It's probably not the best way go; if you can re-write the script in Java there's far less overhead. Assuming you can't, is your Tcl script "wrapped" into an executable file? If not, what java needs to call is the Tcl shell (tclsh or wish) with the script as a parameter.
Do you know of any good references for converting tcl to java. I get confused on whether to use ArrayList or Hashtable for the tcl list. Converting line by line is a very slow process. Any advice would be appreciated on how to approach rewriting the tcl scripts. I'm very new to tcl.
Do you know of any good references for converting tcl to java. I get confused on whether to use ArrayList or Hashtable for the tcl list. Converting line by line is a very slow process. Any advice would be appreciated on how to approach rewriting the tcl scripts. I'm very new to tcl.
I'm afraid there's no quick conversion, at least as far as I know. I have converted many scripts from Tcl to Java but how to do it has varied in each case, depending on the application. As a general rule, I think Tcl lists are best converted to Java arrays. That is, I use lists a lot in Tcl because they seem like 'natural' constructs in Tcl. The correspondingly 'natural' set of elements in Java seems, to me, to be the array.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.