| Deutsch English Français Italiano |
|
<vjbpe3$1eljb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Harald Oehlmann <wortkarg3@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: sample extension: how to beam created proc tolkens to unload
procedure
Date: Wed, 11 Dec 2024 11:27:14 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vjbpe3$1eljb$1@dont-email.me>
References: <vj921g$t4fh$1@dont-email.me>
<20241210121305.783c35bc867324876cf3ec2b@example.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Dec 2024 11:27:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="666cb4466d32c5b2e88684559a3a6100";
logging-data="1529451"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rasJLPLZ0QPPy7CHoWkSL"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iRd2g35zgnC4QmjtMLM+GjqLp+w=
Content-Language: en-GB
In-Reply-To: <20241210121305.783c35bc867324876cf3ec2b@example.invalid>
Am 10.12.2024 um 16:13 schrieb Emiliano:
> On Tue, 10 Dec 2024 10:35:46 +0100
> Harald Oehlmann <wortkarg3@yahoo.com> wrote:
> You get (at least!) three "levels" for storing cliendata to Tcl:
>
> * Per command, using the clientdata argument of Tcl_CreateObjCommand().
> * Per interp, using Tcl_{Set|Get}AssocData().
> * Per thread, using Tcl_GetThreadData().
I found another one. The command
Tcl_CreateNamespace(interp, name, clientData, deleteProc)
also has a clientData and deleteProc argument.
When the command of the sample application is put into a namespace (IMHO
a good practice), we can use the namespace clientData to store the
command tolkens.
This may avoid the associated data.
Thanks for all,
Harald