Re: BUG: wrong usage for package loading with multiple versions available

Liste des GroupesRevenir à cl tcl 
Sujet : Re: BUG: wrong usage for package loading with multiple versions available
De : aotto1968 (at) *nospam* t-online.de (aotto1968)
Groupes : comp.lang.tcl
Date : 03. May 2025, 15:41:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vv59um$3nsav$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 02.05.25 18:33, Ralf Fassel wrote:
* aotto1968 <aotto1968@t-online.de>
| ok, lets check
 I would suggest to read *and understand* the 'package' manpage.
 | package versions tcltest
| > 2.3.8 2.5.3
| # BUG: 2.3 have to pic-up latest patch of the 2.3
| package require tcltest 2.3
 Why?  manpage says otherwise:
                A suitable version of the package is any version which satisfies
               at least one of the requirements, per the rules of package vsat-
               isfies.  If  multiple  versions  are suitable the implementation
               with the highest version is chosen.
 Note the last sentence.
 | # Bug: upper limit does NOT works at all
| package require tcltest -2.3.9
 Why should that work at all?
       Each requirement is allowed to have any of the forms:
                min    This form is called “min-bounded”.
                min-   This form is called “min-unbound”.
                min-max
                      This form is called “bounded”.
 There is no '-max' mode.
 | # BUG: 2.3.8 is NOT of the solution
| package require tcltest 2.3-2.3.8
 As stated in the manpage:
                [2]    A version satisfies a “bounded” requirement when
 --<snip-snip>--
                      [b]    Otherwise if, and only if the version  is  greater
                             than  or  equal to the min, and less than the max,
                             where both min and max have been padded internally
                             with  “a0”.  Note that while the comparison to min
                             is inclusive, the comparison to max is exclusive.
Note the last sentence.
 | # OK - only case that works
| package require tcltest 2.3-2.3.9
 As stated in the manpage, same as last point.
 HTH
R'
I've already mentioned in the past that a bug written to the documentation is not a non-bug, but rather a "documented bug."
- If I write "package require 2.3," then I want the LASTEST from 2.3, i.e., 2.3.8.
- If I write "package require 2," then I want the latest from 2, i.e., 2.5.3, etc.
mfg

Date Sujet#  Auteur
30 Apr 25 * BUG: wrong usage for package loading with multiple versions available8aotto1968
30 Apr 25 +- Re: BUG: wrong usage for package loading with multiple versions available1Emiliano
30 Apr 25 `* Re: BUG: wrong usage for package loading with multiple versions available6Alan Grunwald
30 Apr 25  `* Re: BUG: wrong usage for package loading with multiple versions available5aotto1968
30 Apr 25   `* Re: BUG: wrong usage for package loading with multiple versions available4aotto1968
2 May 25    `* Re: BUG: wrong usage for package loading with multiple versions available3Ralf Fassel
3 May 25     `* Re: BUG: wrong usage for package loading with multiple versions available2aotto1968
5 May 25      `- Re: BUG: wrong usage for package loading with multiple versions available1Ralf Fassel

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal