Subj : Re: Inconsistent function behavior in Rhino To : Barnabas Wolf From : Igor Bukanov Date : Fri Jan 24 2003 08:45 pm I run the following script in the Rhino shell (I replaced print by xprint as the shell defines its out print, but even with keeping print the result is the same) and everything was fine: xprint declerated externally, referenced in object: this[name]: aaa this[String(name)]: aaa Script: function writeln(str) { java.lang.System.out.println(str); } function xprint(name) { writeln("this[name]: "+this[name]); writeln("this[String(name)]: "+this[String(name)]); }; function breakobj2() { this.xprint("a"); }; var obj2 = { a: "aaa", xprint: xprint } writeln("xprint declerated externally, referenced in object: "); obj2.xprint("a"); Regards, Igor .