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
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
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
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
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
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
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]
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
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.
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
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
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
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
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
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
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
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
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
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
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
[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
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?
-
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
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
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/ .
> >
>
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
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
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:
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
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
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
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
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]]
>
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
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:
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
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
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.
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
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
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
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
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
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
44 matches
Mail list logo