Deutsch   English   Français   Italiano  
<utudneS1LKYaZ-H7nZ2dnZfqnPUAAAAA@brightview.co.uk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!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 Summerfield <mark@qtrac.eu>
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
Bytes: 1890

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.