Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #124: user to computer ration too low.


comp / comp.lang.tcl / Re: is it possible to programmatically access Tcllib and Tklib versions?

SubjectAuthor
* is it possible to programmatically access Tcllib and Tklib versions?Mark Summerfield
`* Re: is it possible to programmatically access Tcllib and Tklib versions?Rich
 `* Re: is it possible to programmatically access Tcllib and Tklib versions?Mark Summerfield
  `- Re: is it possible to programmatically access Tcllib and Tklib versions?Harald Oehlmann

1
Subject: is it possible to programmatically access Tcllib and Tklib versions?
From: Mark Summerfield
Newsgroups: comp.lang.tcl
Date: Wed, 26 Jun 2024 07:40 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 26 Jun 2024 07:40:00 +0000
From: mark@qtrac.eu (Mark Summerfield)
Subject: is it possible to programmatically access Tcllib and Tklib versions?
Newsgroups: comp.lang.tcl
MIME-Version: 1.0
User-Agent: Pan/0.154 (Izium; 517acf4)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <eYecndZfv-BNWOb7nZ2dnZfqnPUAAAAA@brightview.co.uk>
Date: Wed, 26 Jun 2024 07:40:00 +0000
Lines: 7
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-A2R0S43tzqcEQVH3vxu9lMKEuCqYiPKEXUkRib6RxfG0gkRX5MXn32M5a/Er/x8AcKW5OHbi4RM8NTT!IKYwUpPUMX4QeBvCpnIB3819HXBxqkxKHxAZyH9ws+j10RjxFmLxoBWs5OT6h8haiI2PbEAC/DEo!fbh784J/N94kHLKIMFDYQ/nfzw==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

For a --help option or for an About box I like to show lib versions.
This is easy for Tcl and for Tk, e.g.

"Tcl v$::tcl_patchLevel/Tk v$::tk_version"

But I can't see how to get the versions of Tcllib and Tklib. Is this
possible?

Subject: Re: is it possible to programmatically access Tcllib and Tklib versions?
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 26 Jun 2024 16:31 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: is it possible to programmatically access Tcllib and Tklib versions?
Date: Wed, 26 Jun 2024 16:31:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <v5hfpu$279i8$2@dont-email.me>
References: <eYecndZfv-BNWOb7nZ2dnZfqnPUAAAAA@brightview.co.uk>
Injection-Date: Wed, 26 Jun 2024 18:31:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f1f0464a150e143234d52dfb8b591d5a";
logging-data="2336328"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7OkSLBogLe4Jeb/WRPkl1"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:Dybp2sh8e9jd229f25e/B+CI+vk=
View all headers

Mark Summerfield <mark@qtrac.eu> wrote:
> For a --help option or for an About box I like to show lib versions.
> This is easy for Tcl and for Tk, e.g.
>
> "Tcl v$::tcl_patchLevel/Tk v$::tk_version"
>
> But I can't see how to get the versions of Tcllib and Tklib. Is this
> possible?

I don't think so, as each module within tcllib is separately versioned.

You can show the versions by either capturing the return from package
require, or by rerunning package require at the time you want the data:

$ rlwrap tclsh
% package require cmdline
1.5.2
% set cmdline_ver [package require cmdline]
1.5.2
% puts "cmdline version is $cmdline_ver"
cmdline version is 1.5.2
%

Subject: Re: is it possible to programmatically access Tcllib and Tklib versions?
From: Mark Summerfield
Newsgroups: comp.lang.tcl
Date: Thu, 27 Jun 2024 05:37 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 27 Jun 2024 05:37:11 +0000
From: mark@qtrac.eu (Mark Summerfield)
Subject: Re: is it possible to programmatically access Tcllib and Tklib
versions?
Newsgroups: comp.lang.tcl
References: <eYecndZfv-BNWOb7nZ2dnZfqnPUAAAAA@brightview.co.uk>
<v5hfpu$279i8$2@dont-email.me>
MIME-Version: 1.0
User-Agent: Pan/0.154 (Izium; 517acf4)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <utudneS1LKYaZ-H7nZ2dnZfqnPUAAAAA@brightview.co.uk>
Date: Thu, 27 Jun 2024 05:37:11 +0000
Lines: 22
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-bUSfGy9glbpforRn7gGTzF5GCIOrJE4qP6+QYBsElzD2FZHBt8AESq3Zg/hSaOw9iUVMQTUFUHOCiTE!GDupnK3l3B9ngDkVACwStjRbwgKdcZF/86upZ3hFt+PA5LDvvwGhHpX9NVdpT84lkJrKhs/ricSb!I1YYtW7HF2tTXfwDFpvK7niMZw==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On Wed, 26 Jun 2024 16:31:58 -0000 (UTC), Rich wrote:

> Mark Summerfield <mark@qtrac.eu> wrote:
>> For a --help option or for an About box I like to show lib versions.
>> This is easy for Tcl and for Tk, e.g.
>>
>> "Tcl v$::tcl_patchLevel/Tk v$::tk_version"
>>
>> But I can't see how to get the versions of Tcllib and Tklib. Is this
>> possible?
>
> I don't think so, as each module within tcllib is separately versioned.
>
> You can show the versions by either capturing the return from package
> require, or by rerunning package require at the time you want the data:
>
> $ rlwrap tclsh % package require cmdline 1.5.2 % set cmdline_ver
> [package require cmdline]
> 1.5.2 % puts "cmdline version is $cmdline_ver" cmdline version is
> 1.5.2 %

Ok, understood. Thanks.

Subject: Re: is it possible to programmatically access Tcllib and Tklib versions?
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Thu, 27 Jun 2024 17:35 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: is it possible to programmatically access Tcllib and Tklib
versions?
Date: Thu, 27 Jun 2024 19:35:49 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v5k7tl$2r9ec$1@dont-email.me>
References: <eYecndZfv-BNWOb7nZ2dnZfqnPUAAAAA@brightview.co.uk>
<v5hfpu$279i8$2@dont-email.me>
<utudneS1LKYaZ-H7nZ2dnZfqnPUAAAAA@brightview.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Jun 2024 19:35:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="654b9e4cd98c28ed3b1d56415691e53d";
logging-data="2991564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yRHQAnQJ0Pd8E7bhg+Dnk"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sslRbsPOI8NSbSYzgkID/NVdbmM=
Content-Language: en-GB
In-Reply-To: <utudneS1LKYaZ-H7nZ2dnZfqnPUAAAAA@brightview.co.uk>
View all headers

Am 27.06.2024 um 07:37 schrieb Mark Summerfield:
> On Wed, 26 Jun 2024 16:31:58 -0000 (UTC), Rich wrote:
>
>> Mark Summerfield <mark@qtrac.eu> wrote:
>>> For a --help option or for an About box I like to show lib versions.
>>> This is easy for Tcl and for Tk, e.g.
>>>
>>> "Tcl v$::tcl_patchLevel/Tk v$::tk_version"
>>>
>>> But I can't see how to get the versions of Tcllib and Tklib. Is this
>>> possible?
>>
>> I don't think so, as each module within tcllib is separately versioned.
>>
>> You can show the versions by either capturing the return from package
>> require, or by rerunning package require at the time you want the data:
>>
>> $ rlwrap tclsh % package require cmdline 1.5.2 % set cmdline_ver
>> [package require cmdline]
>> 1.5.2 % puts "cmdline version is $cmdline_ver" cmdline version is
>> 1.5.2 %
>
> Ok, understood. Thanks.

No, there is something. I asked this question and Andreas added something.
https://core.tcl-lang.org/tcllib/info/13fc0520a654f9e9
No, it is not included. But we recently have code to also include the
fossil checkout id.
Here is the code by Alex:
https://fossil.sowaswie.de/ooxml/info/424958a4c5506180
I will add this to the tcllib ticket...

Harald

1

rocksolid light 0.9.8
clearnet tor