When a java::* method returns a java variable, it only works when I do a
"set" of that variable into a local tcl variable. If I just use the
variable returned by java::* command then it does not work in TCL.
Following example illustrates this. Is this supposed to work any other
way?

Why does the following not work?

% java::new String "aa"
java0x1
% java0x1 equals "AA"
invalid command name "java0x1"
%

Where as the following works:

% set some_var [java::new String "aa"]
java0x1
% $some_var equals "AA"
0
%


Thanks,

-Sachin
[EMAIL PROTECTED]


----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to