[Tcl Java] RE: [Tcl Java] TclJava user feedback needed.

1999-10-17 Thread Thomas McKay
As someone using Jacl in a commercial MCAD application... it's great! Honestly, I have absolutely no complaints and only praise for all involved in such a useful application of Java. The only misperception that people have when I describe Jacl (and Tcl) to them is that they think Tk is part of it

[Tcl Java] Re: VerifyError

1999-03-11 Thread Thomas McKay
Well after some more web searching, I started to investigate the nesting of throw/catch/finally and return statements. Ouch! Very painful. I can't pin down the specific sequence but by simply removing the 'return' within "try { try { } catch { return } } finally { }" solved the problem. I assu

[Tcl Java] cd / pwd

1999-03-30 Thread Thomas McKay
Is there a reason that the 'cd' and 'pwd' commands use a value within Interp rather than setting and getting the system property "user.dir"? I haven't tried, but I assume that if the user.dir property is adjusted then attempting to open a file from within the Java portion of the application will l

[Tcl Java] Re: cd / pwd

1999-04-05 Thread Thomas McKay
Well, what I did as a workaround was to set the system property "user.dir" in the interp. Then in my Java portions of the application that needed to access a file was use: new File( "name" ).getCanonicalFile(). The 'canonical' methods use the current value of "user.dir" to resolve the file name

[Tcl Java] ReflectObject questions

1999-04-21 Thread Thomas McKay
Hi! In my Jacl application, users may write Tcl scripts to manipulate database objects: prompt% set o [createRect 0 0 20 30] java0xcf However, if a script is to be written that is associated with a specific object, then that objects id (the java0xcf name) must be persistent and stored when the db

[Tcl Java] Re: ReflectObject questions

1999-04-21 Thread Thomas McKay
Yikes! I've been using v1.1a1 and am now trying to use 1.2.2: None of the "java::" commands are available. Do I need to do something with BlendExtension? Tom The TclJava mailing list is sponsored by WebNet Technologies. To subsc

[Tcl Java] 1.1a1 vs 1.2.2 performance

1999-04-22 Thread Thomas McKay
Sourcing files in 1.2.2 seems remarkably slower than in 1.1a1. Are there specific changes that would cause this? The TclJava mailing list is sponsored by WebNet Technologies. To subscribe:send mail to [EMAIL PROTECTED]

[Tcl Java] debugger for tcl usable w/ jacl?

1999-05-20 Thread Thomas McKay
Is there a 'gdb'-ish debugger that could be used for Jacl? It would be powerful to allow my users to debug (step through and print vars) a tcl proc within my application. Any ideas? The TclJava mailing list is sponsored by WebNet

[Tcl Java] Re: How fast is Jacl?

1999-08-17 Thread Thomas McKay
I noticed a problem when switch from 1.1a1 to the next version (which was...?) in that source'ing files was orders of magnitude slower. Now, I didn't take the time to determine if it was the file sourcing itself of calling all of the commands (which were java extensions loaded on-demand) or what.

[Tcl Java] Re: How fast is Jacl?

1999-08-20 Thread Thomas McKay
I just ran a test of Jacl 1.1a1, 1.2.3, and 1.2.4 and they all had nearly identical results (+/- 0.1 seconds). (I'll be happy to test 1.1 if I can get a pre-built version.) My only guess is that a change I made between now and the last time I tested against 1.1 (which was the version I saw the s

[Tcl Java] tcl question

1999-09-03 Thread Thomas McKay
The following does not parse in 1.1a1 proc foo {a b}{ return } "extra character after curly brace" (or some such message). It was due to there being no space between the "}{". Is this a Tcl limitation? begin:vcard n:McKay;Thomas tel;work:919-854-7500 x103 x-mozilla-html:TRUE org:Microco

[Tcl Java] interrupting an infinite loop

1999-09-03 Thread Thomas McKay
Ahhh users... what can you do? A not-so-uncommon programming error is to write a for loop that loops forever. Is there any mechanism to force the interpreter to stop evaluating? Can I force an error to be thrown some how? I'm using 1.1a1 but am working on upgrading the latest-greatest. Thanks

[Tcl Java] loading classes dynamically as commands

1999-10-27 Thread Thomas McKay
basic problem is this: When the user types in a command and it is not recognized, the interpreter will go search the user's classpath for this command as CommandName.class and load it using TclClassLoader. What is the proper way to do this? --- Thomas McKay Project Leader Microcosm Technol

[Tcl Java] more 1.2.4 questions

1999-10-27 Thread Thomas McKay
I believe there is a way now to associate a name with ReflectObjects although I've long since forgotten what it is. Anyone help? Second, does namespace work completely? Thanks! --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL PROT

[Tcl Java] RE: [Tcl Java] Re: [Tcl Java] loading classes dynamically as commands

1999-10-28 Thread Thomas McKay
After I asked the question I had some more time to poke around in the Jacl src. No, it was never a feature it just seemed natural to me that it would be, though. I'll include some code snippets below to illustrate what I am doing. This was my thought: When a user types a command, say "MyComman

[Tcl Java] RE: [Tcl Java] Re: [Tcl Java] more 1.2.4 questions

1999-10-28 Thread Thomas McKay
ject: [Tcl Java] Re: [Tcl Java] more 1.2.4 questions > > > On Wed, 27 Oct 1999, Thomas McKay wrote: > > Well, you can rename reflect objects now (like java0x1) > but it is a little tricky because you can not use the > variable in a way that changes the InternalRep and > then

[Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Re: [Tcl Java] more 1.2.4 questions

1999-10-28 Thread Thomas McKay
How would I do it in Java? This is what I have now... tclObject = ReflectObject.newInstance( interp, this.getClass(), this ); tclObject.preserve(); Would it be as simple as interp.renameCommand( tclObject.toString(), "rect20" ); Wou

[Tcl Java] RE: [Tcl Java] loading classes dynamically as commands

1999-10-28 Thread Thomas McKay
ading classes > dynamically as commands > > > On Thu, 28 Oct 1999, Thomas McKay wrote: > > > After I asked the question I had some more time to poke around > in the Jacl > > src. No, it was never a feature it just seemed natural to me > that it would > > be, t

[Tcl Java] RE: [Tcl Java] more 1.2.4 questions

1999-10-28 Thread Thomas McKay
Ahh, I remember hearing this from you in the past. However, as then, I still don't get why it's bad to use the "most derived" class. Why wouldn't you want to give the user access to the DerivedFromHashtable (to use the example in the docs)? What if there are methods or fields in this derived c

[Tcl Java] namespace

1999-11-02 Thread Thomas McKay
Should the following work? namespace foo { variable x set x 12 proc y { a } { puts $y } } I get an unrecognized arg foo, should be eval, etc. Looking at the code it sure seems like this won't work. How do I create a namespace then? --- Thomas McKay Project Leader Microcosm Technol

[Tcl Java] RE: [Tcl Java] namespace

1999-11-03 Thread Thomas McKay
[EMAIL PROTECTED]] > Sent: Tuesday, November 02, 1999 8:47 PM > To: [EMAIL PROTECTED] > Subject: [Tcl Java] Re: [Tcl Java] namespace > > > On Tue, 2 Nov 1999, Thomas McKay wrote: > > Nope, you need to use "namespace eval {...}" > > Try this. > > % names

[Tcl Java] versioning of Jacl commands

1999-11-12 Thread Thomas McKay
ity. I see two possibilities: 1) Rework the commands. At the same time, produce a set of stub classes matching the old ones that simply call the new class. 2) Write a bunch of Tcl procs that accomplish the same thing. In general though, does anyone have any clever ideas for versioning commands? -

[Tcl Java] redirecting jacl channels

1999-11-17 Thread Thomas McKay
There was a note posted a while ago on how to redirect stdout and stderr in Jacl. I thought I had saved it... Is there an archive of this list? Can someone forward me a copy if they have it? --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL PROTECTED

[Tcl Java] more on redirecting stdin/stdout

1999-11-17 Thread Thomas McKay
rr to a string which is then returned. Maybe eval can already do this? --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL PROTECTED] The TclJava mailing list is sponsored by Scriptics Corporation. To subscr

[Tcl Java] RE: [Tcl Java] more on redirecting stdin/stdout

1999-01-16 Thread Thomas McKay
uot;expected result" } { > puts "test passed" > } else { > puts "test failed" > } > > -Shawn > > Thomas McKay wrote: > > > Okay, I found the archive at > > http://www.mail-archive.com/tcljava@scriptics.com/ . > > >

[Tcl Java] running jacl in an applet

1999-11-23 Thread Thomas McKay
utely nothing with tclblend.) Thanks! --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL PROTECTED] The TclJava mailing list is sponsored by Scriptics Corporation. To subscribe:send mail to [EMAIL PROT

[Tcl Java] RE: [Tcl Java] running jacl in an applet

1999-11-24 Thread Thomas McKay
de in a browser > really seems like a cool feature, but it is nothing but pain for > a developer. > > Mo DeJong > > On Tue, 23 Nov 1999, Thomas McKay wrote: > > > So I see in the readme and notes in the code that there are > some problems > > currently in running

[Tcl Java] Re: [Tcl Java] Jacl in applet

2000-01-17 Thread Thomas McKay
Actually, you can use Jacl in an applet; at least in Netscape. By using the Java 2 plug-in there is a finer-grained security mechanism called "policies." By setting the correct policies, an applet can get permission to read files from jars (such as init.tcl) and examine classes (like using java:

[Tcl Java] Re: [Tcl Java] Jacl in applet

2000-01-17 Thread Thomas McKay
the problem you were running into? Would the applet fail to run > without the patch you suggest? Could you post a diff -u style patch > for the change you suggest? > > Mo Dejong > Red Hat Inc. > > On Mon, 17 Jan 2000, Thomas McKay wrote: > > ... > > > + Ch

[Tcl Java] ReflectObject problems

2000-01-25 Thread Thomas McKay
idea what could cause this? I have a tcl proc that repeatedly calls the java-implemented tcl command, if that makes a difference. --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL PROTECTED] The TclJava maili

[Tcl Java] RE: [Tcl Java] RE: ReflectObject problems

2000-02-02 Thread Thomas McKay
quot; Jacl. > -Original Message- > From: Mo DeJong [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 01, 2000 8:01 PM > To: Thomas McKay > Cc: [EMAIL PROTECTED] > Subject: [Tcl Java] RE: ReflectObject problems > > > Humm, without knowing exactly what command it fails on

[Tcl Java] FW: New MEMS Development Tools Available

2000-02-09 Thread Thomas McKay
Hello all! The project I've been using Jacl for, Catapult, has just been released! It is a MEMS-specific design tool. If you, or someone you know, is doing any work w/ MEMS pass this on to them. Couldn't have done it w/o Jacl!! Thanks! -Original Message- From: Microcosm [mailto:[EMAI

[Tcl Java] Re: [Tcl Java] External classloader for JACL

2000-03-02 Thread Thomas McKay
I actually like the feature of looking for and loading classes from the jar files. As long as I can still do this through an alternative method (such as TCL_CLASSPATH) it'll work. I can see the benefit of such a system. > -Original Message- > From: Mo DeJong [mailto:[EMAIL PROTECTED]] >

[Tcl Java] Re: [Tcl Java] External classloader for JACL

2000-03-03 Thread Thomas McKay
ies listed in env(TCL_JARPATH) would be searched. > Of course, if you wanted to put the full path name of a .jar file on > the env(TCL_CLASSPATH) that would still be supported. Does anyone > see a problem with that? This would be going into 1.3 so > backward compatibility is not a val

[Tcl Java] RE: [Tcl Java] New 1.3 version is in the CVS

2000-03-30 Thread Thomas McKay
I just did a 'cvs checkout tcljava' and it fails to build. The jacl/tcl/regex dir is empty(?). Is there a new regular expression package I should be picking up somewhere? > -Original Message- > From: Mo DeJong [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 23, 2000 5:37 PM > To:

[Tcl Java] RE: [Tcl Java] RE: [Tcl Java] New 1.3 version is in the CVS

2000-03-30 Thread Thomas McKay
out grabbing > new files, you can also add the -d option to an update to get the > same effect. > > You should get these files. > > % find tcljava/ | grep regexp > tcljava/src/jacl/sunlabs/brazil/util/regexp/Regexp.java > tcljava/src/jacl/sunlabs/brazil/util/regexp/Regsub.jav

[Tcl Java] RE: [Tcl Java] Re: [Tcl Java] exec command

2000-06-13 Thread Thomas McKay
I think, actually, that in 1.2 at least if the System property "user.dir" is set appropriately that is where the Runtime.exec() takes place. I modified Interp.setWorkingDir() appropriately (which is called by CdCmd.java): if (dirObj.isDirectory()) { workingDir = dirObj; Syste

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

2000-06-29 Thread Thomas McKay
As you know, Mo, I have also had a tough time figuring out what is *bad* about passing in obj.getClass(). I can understand if there are methods that you don't want to expose to the user in the derived class. In your example, if I wanted to prevent C.exit() from being callable I should pass in B.

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

2000-06-29 Thread Thomas McKay
M > To: [EMAIL PROTECTED] > Subject: [Tcl Java] Re: [Tcl Java] Small test case > > > On Thu, 29 Jun 2000, Thomas McKay wrote: > > > As you know, Mo, I have also had a tough time figuring out what is *bad* > > about passing in obj.getClass(). > > > > I can u

[Tcl Java] tracing a proc

2000-07-10 Thread Thomas McKay
Is there a way to trace changes to a proc? I'm using Jacl and the Interp.traceVar() which seems to work fine for vars bug redefining a proc doesn't result in a call to the VarTrace class. --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL

[Tcl Java] autoconf 2.14

2000-10-26 Thread Thomas McKay
Can someone send me a pointer to where I can download autoconf 2.14. I just checked out tcljava from sourceforge and would like to make it. There aren't any instructions on doing this so I am assuming that I: 1) autoconf configure.in 2) configure 3) make --- Thomas McKay Project L

[Tcl Java] compiling jacl

2000-10-26 Thread Thomas McKay
ons/jdk1.3.0rc3/bin/javac caffeine:mckay://e/Applications/jacl/sourceforge/tcljava> --- Thomas McKay Project Leader Microcosm Technologies, Inc. mailto:[EMAIL PROTECTED] The TclJava mailing list is sponsored by Scriptics Corporation. To sub

[Tcl Java] compiling tcljava

2000-10-26 Thread Thomas McKay
which causes failures. I'm using the cygnus tools. 3) The line in the Makefile @echo "# Making tcljava.build" gives me an error about an unterminated quoted string. Not sure why. Am I just being clueless here? That said, it appears that I have built jacl.jar and tclj

[Tcl Java] Interp.evalURL() made public

2000-10-31 Thread Thomas McKay
Can I request that the method Interp.evalURL() be made public? Perhaps there's another way to accomplish the equivalent functionality or some reason it's not already? --- Thomas McKay Manager, Software Development Microcosm Technologies, Inc. mailto:[EMAIL PROTECTED] 4001 West