[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Static methods and casts.

1999-11-16 Thread Moses DeJong
Having one command that does two totally unrelated things seems like a bad design if you ask me. It might be cleaner to define a command to invoke the static method and another one to actually do the shorter cast operation. What if you used something like this? set s [java::new String "I am a Jav

[Tcl Java] Re: [Tcl Java] Re: [Tcl Java] Static methods and casts.

1999-11-16 Thread Thomas Down
On Tue, Nov 16, 1999 at 09:25:22AM -0600, Moses DeJong wrote: > > Well, Jacl 1.2.5 already includes a java::import command > so your java::import command would conflict. Sorry, I didn't make this clear -- this is implemented as an extra option for the existing java::import. The current behaviou

[Tcl Java] Re: [Tcl Java] Static methods and casts.

1999-11-16 Thread Moses DeJong
On Tue, 16 Nov 1999, Thomas Down wrote: > I've written a simple patch for JaCL (should also work with > TclBlend, I guess) which allows you to create a new Tcl command > for each java class which you import. This provides an easy > approach to casting, e.g.: > > package require java Well, Ja