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 Weston Parkway
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 Leader
ing 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 tcljava.jar
successfully.
---
Thomas M
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
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;
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]]
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
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:
...
+ Changed Class.class.getResourceAsStream() in Interp.java to
getClass().getResourceAsStream
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 PROTECTED
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?
---
Thomas McKay
uesday, 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.
% namespace eval foo {
variable x
set x 12
}
% set foo::x
12
You can
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 Technologies
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" );
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
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
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
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
puts "test failed"
}
-Shawn
Thomas McKay wrote:
Okay, I found the archive at
http://www.mail-archive.com/tcljava@scriptics.com/ .
Here's what I'm trying to do... Some of my custom command extensions to
Jacl generate textual output. Now right now they simply print it in a
18 matches
Mail list logo