Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: odt@xxxxxxx (Olaf Dietrich)
- Date: Wed, 30 Apr 2008 14:18:37 +0000 (UTC)
Neil Madden <nem@xxxxxxxxxxxxx>:
Olaf Dietrich wrote:
Ralf Fassel <ralfixx@xxxxxx>:
* odt@xxxxxxx (Olaf Dietrich)
| Tcl_PkgRequire(interp, "Tcl", TCL_VERSION, 1)
| 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.
They shouldn't be. Minor versions should be compatible -- only major
version changes can break compatibility (at least, that's how it's
supposed to work).
The current major version number is 8, the current minor version
number is 5. As far as I know, minor versions are not supposed to
be binary compatible (that's why there are always different names
for the tcl-libraries with different minor version, i.e. libtcl8.4.so,
libtcl8.5.so etc. and also different include directories for the
tcl-header files).
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.
8.5 got stricter about version numbers: specifying "8.5" exactly means
"8.5.0" exactly.
Which is not very useful in my opinion ... ("8.5" should mean "8.5.*").
Anyway, the hint by Don Porter in this thread (i.e., to use
Tcl_InitStubs()) was most helpful.
Olaf
.
- Follow-Ups:
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Neil Madden
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- References:
- version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Olaf Dietrich
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Ralf Fassel
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Olaf Dietrich
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Neil Madden
- version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Prev by Date: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Next by Date: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Previous by thread: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Next by thread: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Index(es):
Relevant Pages
|