Subj : Re: [Q] Rhino. How to implement host objects having overloading functions? To : netscape.public.mozilla.jseng From : Igor Bukanov Date : Mon Jun 30 2003 09:51 pm "��������������������������" wrote: > I have to make a host object that provides two overloading functions. > > For example, > I want to implement following two functions. > > public class Me > { > public void f(String s); > public void f(String s, Integer n); > } > > After implementing two functions, I execute this statement in javascript. > > me = new Me(); ^^^^^^^^^^^^^^^^ How did you put Me into the global scope? I tried your example with me = new Packages.Me(); me.f('hi', 100); and the second version of f was called properly. Regards, Igor .