Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL



Ralf Fassel <ralfixx@xxxxxx>:
* odt@xxxxxxx (Olaf Dietrich)
| Tcl_PkgRequire(interp, "Tcl", TCL_VERSION, 1)

Check the meaning of the '1' in this call:

http://www.tcl.tk/man/tcl8.5/TclLib/PkgRequire.htm

| int exact (in)
| Non-zero means that only the particular version
| specified by version is acceptable. Zero means that newer
| versions than version are also acceptable as long as they
| have the same major version number as version.

I want to accept all versions with the same _minor_ version
number (e.g. 8.5.0, 8.5.1, 8.5.2, ... 8.5.23), but _not_ newer
versions with a different minor version number, i.e. not 8.6.0
etc. since these might be incompatible.

And then consider using 0 instead.

So I cannot use 0. And it seems that under tcl 8.4 I get exactly
the desired behavior with the call above - but not longer under
tcl 8.5.

Olaf
.



Relevant Pages

  • Re: Tcl/Tk Tutorial
    ... strings and other special lexical tokens) and ... of meaning of any particular character. ... Languages which allow great ... Tcl isn't like that. ...
    (comp.lang.tcl)
  • Re: exec command, need some help
    ... I am trying to execute a program in a tcl scrip but I could not make ... non-zero return code. ... See http://wiki.tcl.tk/exec for a variety of remarks and some examples ...
    (comp.lang.tcl)
  • Re: Tcl_CreateCommand in 8.4.4
    ... >but i do not see this error when compiling it against 8.3(not activeTcl). ... Tcl 8.4 has been 'constified', meaning that parameters which are not ...
    (comp.lang.tcl)
  • Re: Enhance [proc] for anonymous functions and closures
    ... relates to whether a value should have more meaning to it other than ... what is present in its string representation. ... relaxed for Tcl 9.0. ... fueling the idea that it is doable at all (Unless 9.0 is the bag of ...
    (comp.lang.tcl)
  • Re: Thoughts about the controversial {expand} feature
    ... it and becomes part of the Tcl language are you saying ActiveState ... might change that in their distro? ... Or did I miss you meaning? ... Standard Tcl uses from 8.5. ...
    (comp.lang.tcl)