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



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
.



Relevant Pages

  • Re: Java compatibility? (was Re: Not a bash, just the facts)
    ... Matthew R. Dempsky wrote: ... would presume that if they were compatible, there would not have been a need for so many or for specifying which version you used when submitting your code. ... One of Java's selling points is compatibility. ...
    (Ubuntu)
  • CreateFile() and FILE_FLAG_WRITE_THROUGH
    ... as zero bytes long in the directory and in Windows Explorer, ... Surely the whole point of specifying that flag is that I want the data to be ... I think the documentation of CreateFile() could do with a little ...
    (microsoft.public.windows.file_system)
  • CreateFile() and FILE_FLAG_WRITE_THROUGH
    ... as zero bytes long in the directory and in Windows Explorer, ... Surely the whole point of specifying that flag is that I want the data to be ... I think the documentation of CreateFile() could do with a little ...
    (microsoft.public.win32.programmer.kernel)
  • Re: list flush left
    ... > Try removing "px" from your value. ... I believe that when specifying a zero ... Prev by Date: ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: list flush left
    ... Try removing "px" from your value. ... I believe that when specifying a zero ... Prev by Date: ...
    (comp.infosystems.www.authoring.stylesheets)