Hi again, and thanks for replying. What I'm really doing is:
{
Similar.method($name, $args);
$_=Similar.getReturnValue();
}
because Similar.method() is a void method. The error I get is with this code above. My
original post had a copy-pasting bug (probably due to late night fatigue). Sorry about
that.
In the example
bytestream.write(myfile.toBytes());
I don't want to assign a value to $_ for the call to toBytes(). The return value must
be pushed onto the stack and remain there to be passed as a parameter to the enclosing
method write().
The problem, I believe, is that I can only pass one string to replace() for all method
calls, whether they're nested or not. So in the case of non-nested method calls, the
code works, since the return value from the call to getReturnValue() is assigned to
whatever original left-hand variable is there. But in the case of a nested method
call, this assignment is not possible, because there is no result variable for the
inner method call. Hence the error.
I hope you can give me a solution to this.
cheers,
Martin
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837892#3837892
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837892
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user