Re: tcllib1.21 and tcl9.0b3

Liste des GroupesRevenir à cl tcl 
Sujet : Re: tcllib1.21 and tcl9.0b3
De : nospam.nurdglaw (at) *nospam* gmail.com (Alan Grunwald)
Groupes : comp.lang.tcl
Date : 14. Sep 2024, 17:46:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc4enq$1ip3g$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 14/09/2024 16:57, Paul Obermeier wrote:
Am 14.09.2024 um 01:13 schrieb Alan Grunwald:
How compatible is tcllib 1.21 with tcl9.0b3?
>
I've built tcl-9.0b3 and want to see how it plays with my scripts. (OK, more properly that should be "how my scripts play with tcl 9.0b3.)
>
I'm testing with a script that includes [package require uri].
>
This fails, saying it can't find the package.
>
I've dug around a bit and I see that the pkgIndex.tcl in tcllib-1.21 starts with a fast return if
>
[package vsatisfies [package provide Tcl] 8]
>
returns 0.
>
I've changed that to
>
[package vsatisfies [package provide Tcl] 8 9]
>
and it now gets a couple of lines further down the script where it encounters
>
if {(0 == [catch {
     package vcompare [info patchlevel] [info patchlevel]
}]) && (
     [package vcompare [info patchlevel] 8.3.1] >= 0
)} {return}
>
and returns.
>
I don't understand this line well enough to change it. As far as I can make out,
>
     package vcompare [info patchlevel] [info patchlevel]
>
will always return 0 and won't throw an exception, so this should always result in a premature return, before all the
>
package ifneeded
>
commands for the packages withing tcllib are executed.
>
However, that argument applies equally to tcl8.6.14, but the same pkgIndex.tcl works just fine on my home-built copy of that.
>
It's getting late and I'll have another look tomorrow and see if I can work out what's happening. In the mean time, I'd very much appreciate any help you can provide.
  Hi Alan,
 tcllib 1.21 is not Tcl9 ready.
You should try the current trunk of tcllib.
Andreas Kupries committed some more Tcl9 related changes just yesterday.
 Also note, that there is a RC0 candidate of Tcl9 (https://sourceforge.net/projects/tcl/files/Tcl/9.0.0/)
 Paul
 
Thanks Paul - I've just spotted a reference to tcllib 2.0 on the wiki; see a message in a sibling thread.
I think I'll press on with 9.0b3 and hope to get that going happily just before 9.0 hits the streets :-). Where is the tcllib repo?
Alan

Date Sujet#  Auteur
14 Sep 24 * tcllib1.21 and tcl9.0b36Alan Grunwald
14 Sep 24 +* Re: tcllib1.21 and tcl9.0b32Alan Grunwald
14 Sep 24 i`- Re: tcllib1.21 and tcl9.0b31Alan Grunwald
14 Sep 24 `* Re: tcllib1.21 and tcl9.0b33Paul Obermeier
14 Sep 24  `* Re: tcllib1.21 and tcl9.0b32Alan Grunwald
14 Sep 24   `- Re: tcllib1.21 and tcl9.0b31Paul Obermeier

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal