Re: [Activetcl] Can someone else verify a problem with thisscriptonactivetcl 8.5 ?
by Larry W. Virden other posts by this author
Oct 29 2007 10:43AM messages near this date
view in the new Beta List Site
Re: [Activetcl] Can someone else verify a problem with thisscriptonactivetcl 8.5 ?
|
[Activetcl] version for unix
-----Original Message-----
From: Andreas Kupries [mailto:andreask@[...].com]
> A safe interp you create with 'interp create -safe'. For a trusted one
you simply leave out the -safe option. As a
> trusted interpreter it automatically inherits the full auto_path
settings etc. of its parent interpreter. Which means
> that you can simply 'package require Foo' to get package Foo. No
special contortions required. A plain 'interp destroy'
> then gets rid of the interpreter and the loaded package(s).
> In other words, the easiest way to clean up state is to destroy the
whole interpreter and then create a new one for the
> next package. That is what I do (*). Much easier than trying to use a
single sub interpreter and trying to clean it up.
Given that this is the ActiveTcl mailing list, then I hope the following
question is appropriate:
Anyone have any good references relating to the interp command? If not,
anyone up to writing about it for me?
I have no idea, reading the man page (and even the wiki), of the why and
how of creating and using an interp ?
> (**) I am exluding certain packages, mostly the stuff I know is for
plugin management stuff and not for a regular interpreter. Oratcl is
another as I know that I can build it, but not run it.
I wonder if there is something special that should be done for the
plugin stuff - because Tcl's introspection reveals the pseudo package
names which fail. It seems, to me, that isn't the "Tcl thing to do",
since Tcl's worldview seems to be that if something shows up as the
result of an info or package command, it should be fair game to use it
(or at least to attempt to use it)...
--
Andreas Kupries <andreask@[...].com>
Developer @ http://www.ActiveState.com
Tel: +1 778-786-1122
--
<URL: http://wiki.tcl.tk/ >
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirden@[...].com > <URL: http://www.purl.org/NET/lvirden/
>
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
|