Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Go to Heaven for the climate, Hell for the company." -- Mark Twain


devel / comp.lang.tcl / Re: How to determine if a script is running uder TKCon?

SubjectAuthor
* How to determine if a script is running uder TKCon?Helmut Giese
+* Re: How to determine if a script is running uder TKCon?Luc
|`- Re: How to determine if a script is running uder TKCon?Helmut Giese
`* Re: How to determine if a script is running uder TKCon?et99
 `* Re: How to determine if a script is running uder TKCon?Helmut Giese
  `* Re: How to determine if a script is running uder TKCon?et99
   +* Re: How to determine if a script is running uder TKCon?Luc
   |`* Re: How to determine if a script is running uder TKCon?et99
   | `- Re: How to determine if a script is running uder TKCon?Christian Gollwitzer
   `* Re: How to determine if a script is running uder TKCon?Helmut Giese
    `- Re: How to determine if a script is running uder TKCon?et99

1
How to determine if a script is running uder TKCon?

<fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22118&group=comp.lang.tcl#22118

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: How to determine if a script is running uder TKCon?
Date: Wed, 24 May 2023 02:46:15 +0200
Organization: ratiosoft
Lines: 22
Message-ID: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="5b6e566b90a57bda778fe51d1dfe6f78";
logging-data="2876655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dOiPwPOxEdRX8drq86+rm"
Cancel-Lock: sha1:H4DBGDR+Vz8VpbwxelzubH1TEIw=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Helmut Giese - Wed, 24 May 2023 00:46 UTC

Hello out there,
I am using TKCon a lot e.g. by using its debug feature 'idebug'. But
sometimes I want to have a script run by itself or under a different
debugger - and then I want to replace the 'idebug' proc by a 'do
nothing' dummy.
Looking at TKCon's sources I see that it creates a namespace 'tkcon' -
but looking for that namespace leads to nothing, as evidenced by the
following dump rigth from a start of TKCon:
----
loading history file ... 40 events added
buffer line limit: 512 max line length: unlimited
Main console display active (Tcl8.6.10 / Tk8.6.10)
(GUI) 41 % lsort [namespace children]
::baltip ::nsf ::oo ::pkg ::poImgUtil ::tcl ::tkpath ::twapi ::zlib
(GUI) 42 % lsort [namespace children ::]
::baltip ::nsf ::oo ::pkg ::poImgUtil ::tcl ::tkpath ::twapi ::zlib
(GUI) 43 %
----
So what is a way to find out what I want?
I'm running TKCon 2.7 under Tcl8.10 on Windows 10.
Any help will be greatly appreciated
Helmut

Re: How to determine if a script is running uder TKCon?

<20230523223328.04159066@lud1.home>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22119&group=comp.lang.tcl#22119

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Tue, 23 May 2023 22:33:28 -0300
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <20230523223328.04159066@lud1.home>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="087ec611cecfea05a22b7cfcba517775";
logging-data="2883296"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xk3CTQm+s5yskDTmwUzRpfDAEeBtB/vY="
Cancel-Lock: sha1:okOYQa1Fwj7NbPCxfR8bvUWdeGk=
 by: Luc - Wed, 24 May 2023 01:33 UTC

On Wed, 24 May 2023 02:46:15 +0200, Helmut Giese wrote:

> Hello out there,
> I am using TKCon a lot e.g. by using its debug feature 'idebug'. But
> sometimes I want to have a script run by itself or under a different
> debugger - and then I want to replace the 'idebug' proc by a 'do
> nothing' dummy.
> Looking at TKCon's sources I see that it creates a namespace 'tkcon' -
> but looking for that namespace leads to nothing, as evidenced by the
> following dump rigth from a start of TKCon:
> ----
> loading history file ... 40 events added
> buffer line limit: 512 max line length: unlimited
> Main console display active (Tcl8.6.10 / Tk8.6.10)
> (GUI) 41 % lsort [namespace children]
> ::baltip ::nsf ::oo ::pkg ::poImgUtil ::tcl ::tkpath ::twapi ::zlib
> (GUI) 42 % lsort [namespace children ::]
> ::baltip ::nsf ::oo ::pkg ::poImgUtil ::tcl ::tkpath ::twapi ::zlib
> (GUI) 43 %
> ----
> So what is a way to find out what I want?
> I'm running TKCon 2.7 under Tcl8.10 on Windows 10.
> Any help will be greatly appreciated
> Helmut

Parsing your message is difficult for me because I am slow to pick
certain things up, but in your place I would have the script set
some variable right in the beginning then unset that variable whenever
it exits, before it exits of course.

Then you can always check if that variable exists. If it does, the
script is running.

--
Luc
>>

Re: How to determine if a script is running uder TKCon?

<u4jr2p$2rovh$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22120&group=comp.lang.tcl#22120

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Tue, 23 May 2023 18:59:53 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <u4jr2p$2rovh$1@dont-email.me>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 24 May 2023 01:59:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3216710f105ad917d95410e6654abe8b";
logging-data="3007473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pGEwQZ+hEwVDFGGDS3AGh"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:EG/n9cP+OVvxs/BjpuxkP3caTrQ=
In-Reply-To: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
Content-Language: en-US
 by: et99 - Wed, 24 May 2023 01:59 UTC

On 5/23/2023 5:46 PM, Helmut Giese wrote:
> Hello out there,
> I am using TKCon a lot e.g. by using its debug feature 'idebug'. But
> sometimes I want to have a script run by itself or under a different
> debugger - and then I want to replace the 'idebug' proc by a 'do
> nothing' dummy.
> Looking at TKCon's sources I see that it creates a namespace 'tkcon' -
> but looking for that namespace leads to nothing, as evidenced by the
> following dump rigth from a start of TKCon:
> ----
> loading history file ... 40 events added
> buffer line limit: 512 max line length: unlimited
> Main console display active (Tcl8.6.10 / Tk8.6.10)
> (GUI) 41 % lsort [namespace children]
> ::baltip ::nsf ::oo ::pkg ::poImgUtil ::tcl ::tkpath ::twapi ::zlib
> (GUI) 42 % lsort [namespace children ::]
> ::baltip ::nsf ::oo ::pkg ::poImgUtil ::tcl ::tkpath ::twapi ::zlib
> (GUI) 43 %
> ----
> So what is a way to find out what I want?
> I'm running TKCon 2.7 under Tcl8.10 on Windows 10.
> Any help will be greatly appreciated
> Helmut

Would this help:

if {"tkcon" in [interp aliases]} "puts yes"

This outputs a yes if I'm running with tkcon, otherwise
not. My tkcon is from magicsplat's install on windows.

Re: How to determine if a script is running uder TKCon?

<35tq6i103690o38cddsd5vmleedqgqi2a1@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22121&group=comp.lang.tcl#22121

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Wed, 24 May 2023 04:27:29 +0200
Organization: ratiosoft
Lines: 14
Message-ID: <35tq6i103690o38cddsd5vmleedqgqi2a1@4ax.com>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com> <20230523223328.04159066@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="5b6e566b90a57bda778fe51d1dfe6f78";
logging-data="3013827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19m5BVEKC0FfZiJmT7Ix28E"
Cancel-Lock: sha1:CI8rE8LVNFqNOAle5Q9iubzxG7E=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Helmut Giese - Wed, 24 May 2023 02:27 UTC

Hi Luc,
>Parsing your message is difficult for me because I am slow to pick
>certain things up, but in your place I would have the script set
>some variable right in the beginning then unset that variable whenever
>it exits, before it exits of course.
>
>Then you can always check if that variable exists. If it does, the
>script is running.
thanks for the attempt, but I want to know whether my script is
running under a certain environment and this environment cannot be
recognized by checking for a certain variable. But luckily et99 knows
of a way to find out.
Thank you anyway
Helmut

Re: How to determine if a script is running uder TKCon?

<pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22122&group=comp.lang.tcl#22122

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Wed, 24 May 2023 04:29:55 +0200
Organization: ratiosoft
Lines: 13
Message-ID: <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com> <u4jr2p$2rovh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="5b6e566b90a57bda778fe51d1dfe6f78";
logging-data="3013827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194UZkEXyCemtLDZUBI77K8"
Cancel-Lock: sha1:HOisHZbEwfikZ1OBYtisVGNaKzg=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Helmut Giese - Wed, 24 May 2023 02:29 UTC

Hi et99,
your're the greatest :)
>Would this help:
>
>if {"tkcon" in [interp aliases]} "puts yes"
>
>This outputs a yes if I'm running with tkcon, otherwise
>not. My tkcon is from magicsplat's install on windows.
>
This is exactly an answer to my problem.
May I ask how you happen to know this?
Many thanks to you
Helmut

Re: How to determine if a script is running uder TKCon?

<u4liie$31eub$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22123&group=comp.lang.tcl#22123

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Wed, 24 May 2023 10:46:54 -0700
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <u4liie$31eub$1@dont-email.me>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
<u4jr2p$2rovh$1@dont-email.me> <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 24 May 2023 17:46:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3216710f105ad917d95410e6654abe8b";
logging-data="3193803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jr5EYaHHeIlh/KvZHNjaJ"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:SjQqU+9z2w3stuW37abPfWx07Hs=
In-Reply-To: <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
Content-Language: en-US
 by: et99 - Wed, 24 May 2023 17:46 UTC

On 5/23/2023 7:29 PM, Helmut Giese wrote:
> Hi et99,
> your're the greatest :)
>> Would this help:
>>
>> if {"tkcon" in [interp aliases]} "puts yes"
>>
>> This outputs a yes if I'm running with tkcon, otherwise
>> not. My tkcon is from magicsplat's install on windows.
>>
> This is exactly an answer to my problem.
> May I ask how you happen to know this?
> Many thanks to you
> Helmut

I knew that each interpreter gets it's own set of namespaces,
globals, etc. and if you weren't able to see any tkcon
namespaces, yet you saw them creating one in the source code,
I figured that was why.

So, I looked at the manual entry on interp and tried a few of
the introspection commands until I found one that was
different when running under tkcon.

I think you can also use [info command tkcon] as well.

Re: How to determine if a script is running uder TKCon?

<20230524172329.40ee3a28@lud1.home>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22124&group=comp.lang.tcl#22124

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Wed, 24 May 2023 17:23:29 -0300
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <20230524172329.40ee3a28@lud1.home>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
<u4jr2p$2rovh$1@dont-email.me>
<pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
<u4liie$31eub$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="4c20384dc2f7c56093f0a96ea2cee7d9";
logging-data="3237660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WQMxIh3BCwqlb3bYfFBJ3NLsiL+V0U7o="
Cancel-Lock: sha1:LLBcMAdd4jnAtzXmFBj0ysgm+Es=
 by: Luc - Wed, 24 May 2023 20:23 UTC

On Wed, 24 May 2023 10:46:54 -0700, et99 wrote:

> I think you can also use [info command tkcon] as well.

So I decided to run [info command tkcon] on Tkcon for the heck of it
and the output was 'tkcon.'

So I tried [info command ss] and the output was 'ss.'

Uh?

So I tried [info command dfg] and the output was empty.

Then 'ss' really exists. What is it? Must be a proc.

% info body ss

catch {unset ::stepsource::watchLevel}
catch {unset ::stepsource::currentBreakPoint}
catch {array unset ::stepsource::varValues}
uplevel 1 $args

What is that? I searched Tkcon's source, my ~/.tkconrc file, ande two
other files I always load/source with Tkcon and and couldn't find that
code anywhere. Do you people have it?

--
Luc
>>

Re: How to determine if a script is running uder TKCon?

<u4lvgo$33bhp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22125&group=comp.lang.tcl#22125

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Wed, 24 May 2023 14:27:51 -0700
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <u4lvgo$33bhp$1@dont-email.me>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
<u4jr2p$2rovh$1@dont-email.me> <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
<u4liie$31eub$1@dont-email.me> <20230524172329.40ee3a28@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 24 May 2023 21:27:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3216710f105ad917d95410e6654abe8b";
logging-data="3255865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mFIqxKTgSAKQSXkkKguPL"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:l3wcZjf6GIKnVM/LuMJTLQRaSPQ=
Content-Language: en-US
In-Reply-To: <20230524172329.40ee3a28@lud1.home>
 by: et99 - Wed, 24 May 2023 21:27 UTC

On 5/24/2023 1:23 PM, Luc wrote:
> On Wed, 24 May 2023 10:46:54 -0700, et99 wrote:
>
>> I think you can also use [info command tkcon] as well.
>
>
> So I decided to run [info command tkcon] on Tkcon for the heck of it
> and the output was 'tkcon.'
>

The [info command ?pattern?] ordinarily takes either no arguments, and
returns all commands visible, or a pattern, and returns all
that match that pattern. In the case of [info command tkcon]
the pattern will match only the one, tkcon, if it's a command
or nothing, so it's easy to test for any specific command
being available.

It also returns all procs and aliases as well. In the case of
tkcon, I think that it is created using the [interp alias]
command which usually gives you an alias in the main
interpreter to a command inside another interpreter.

However, it's also handy for just an alias in the one
interpreter, for example,

% info command dis ;# doesn't exist yet, so null return
% interp alias {} dis {} {tcl::unsupported::disassemble}
dis
% info command dis ;# now an alias
dis
% dis script {incr i}
.... snip ...
Command 1: "incr i"
(0) push1 0 # "i"
(2) incrStkImm +1
(4) done

Re: How to determine if a script is running uder TKCon?

<u4mtdh$3c4jg$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22126&group=comp.lang.tcl#22126

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Thu, 25 May 2023 07:58:09 +0200
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u4mtdh$3c4jg$1@dont-email.me>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
<u4jr2p$2rovh$1@dont-email.me> <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
<u4liie$31eub$1@dont-email.me> <20230524172329.40ee3a28@lud1.home>
<u4lvgo$33bhp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 25 May 2023 05:58:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dcf467afd092bace0c3662c7117d7e3d";
logging-data="3543664"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187RFoJR2QyADp4lB3e/KYR7vMYyIxMA3Q="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.10.1
Cancel-Lock: sha1:Em6TN9CswrUDNb9JwkHPEkh61pw=
In-Reply-To: <u4lvgo$33bhp$1@dont-email.me>
 by: Christian Gollwitzer - Thu, 25 May 2023 05:58 UTC

Am 24.05.23 um 23:27 schrieb et99:
> On 5/24/2023 1:23 PM, Luc wrote:
>> On Wed, 24 May 2023 10:46:54 -0700, et99 wrote:
>>
>>> I think you can also use [info command tkcon] as well.
>>
>>
https://core.tcl-lang.org/tips/doc/trunk/tip/426.md

Christian

Re: How to determine if a script is running uder TKCon?

<0civ6il00k9mi71nrjafdt1pc8gg822lpe@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22128&group=comp.lang.tcl#22128

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Thu, 25 May 2023 22:50:09 +0200
Organization: ratiosoft
Lines: 13
Message-ID: <0civ6il00k9mi71nrjafdt1pc8gg822lpe@4ax.com>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com> <u4jr2p$2rovh$1@dont-email.me> <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com> <u4liie$31eub$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="9bb626383b2df32ee75c3fcd45f5c636";
logging-data="3861694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mfqeygXotDUL6XQKP3E5z"
Cancel-Lock: sha1:WM8XeikhS8l4Bz6L3qFynFg/nnI=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Helmut Giese - Thu, 25 May 2023 20:50 UTC

Hi et99,
>I knew that each interpreter gets it's own set of namespaces,
>globals, etc. and if you weren't able to see any tkcon
>namespaces, yet you saw them creating one in the source code,
>I figured that was why.
>
>So, I looked at the manual entry on interp and tried a few of
>the introspection commands until I found one that was
>different when running under tkcon.
whow, that is really smart. As I said earlier: Your're the greatest
:)
Thanks again
Helmut

Re: How to determine if a script is running uder TKCon?

<u4oioe$3lth7$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22129&group=comp.lang.tcl#22129

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine if a script is running uder TKCon?
Date: Thu, 25 May 2023 14:08:30 -0700
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u4oioe$3lth7$1@dont-email.me>
References: <fpmq6ipev5r8licc5d0b2gtekfhg7kla0f@4ax.com>
<u4jr2p$2rovh$1@dont-email.me> <pgtq6ihus8lofbhtca14gjdshh4gs3jho3@4ax.com>
<u4liie$31eub$1@dont-email.me> <0civ6il00k9mi71nrjafdt1pc8gg822lpe@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 25 May 2023 21:08:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="43b05e95f9ae7e15d65424211e4c71a5";
logging-data="3864103"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nRxIRvuAhBQdm4ApMmIIW"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:xkHk/KtiN4B42cECW72yUSl3jEk=
Content-Language: en-US
In-Reply-To: <0civ6il00k9mi71nrjafdt1pc8gg822lpe@4ax.com>
 by: et99 - Thu, 25 May 2023 21:08 UTC

On 5/25/2023 1:50 PM, Helmut Giese wrote:
> Hi et99,
>> I knew that each interpreter gets it's own set of namespaces,
>> globals, etc. and if you weren't able to see any tkcon
>> namespaces, yet you saw them creating one in the source code,
>> I figured that was why.
>>
>> So, I looked at the manual entry on interp and tried a few of
>> the introspection commands until I found one that was
>> different when running under tkcon.
> whow, that is really smart. As I said earlier: Your're the greatest
> :)
> Thanks again
> Helmut

Thanks for the kind words. If I seem to be knowledgeable,
it's because I've read this great book:

https://www.magicsplat.com/ttpl/index.html

I highly recommend it and I have both the paper edition and
the searchable pdf edition.

Also, the author provides this excellent resource:

https://www.magicsplat.com/tcl-docs/docindex.html


devel / comp.lang.tcl / Re: How to determine if a script is running uder TKCon?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor