[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Small test case

2000-06-29 Thread Mo DeJong
On Thu, 29 Jun 2000, Jeff Sturm wrote: > Mo DeJong wrote: > > Here is another example: > > > > import java.util.Hashtable; > > public class Hashtable2 extends Hashtable > > { > > public static Hashtable get() { > > return new Hashtable2(); > > } > > public void NEVER_CALL() { > > S

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Small test case

2000-06-29 Thread Dr Wes Munsil
Thanks for the dialog. Changing o.getClass() to Object.class in my example made no difference... the occasional "invalid command name" error still occurred. (In changing an arbitrary Java Vector to a Tcl list, there is no other information that justifies identifying a specific class other than

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Small test case

2000-06-29 Thread Mo DeJong
On Thu, 29 Jun 2000, Dr Wes Munsil wrote: > Mo DeJong wrote: > > > There is no "compile time" in Tcl, it is all dynamic, ... > > Exactly my point. Consider these two code snippets, which I assume you agree are >correct uses > of newInstance(): > > B x = new C (); > ReflectObject.newInstance (

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Small test case

2000-06-28 Thread Dr Wes Munsil
Mo DeJong wrote: > There is no "compile time" in Tcl, it is all dynamic, ... Exactly my point. Consider these two code snippets, which I assume you agree are correct uses of newInstance(): B x = new C (); ReflectObject.newInstance (interp, B.class, x); C x = new C (); ReflectObject.newInstanc