Skip to content
This repository has been archived by the owner. It is now read-only.
This repository has been archived by the owner. It is now read-only.

Future Tk version (8.7) may not match Tcl version (9.0) #36

Closed
@chrstphrchvz

Description

@chrstphrchvz

Hello Vadim, I am curious if you happen to know if there is a reason Tcl::Tk initially tries to load Tk with the same version as $tcl_version:

perl-tcl-tk/lib/Tcl/Tk.pm

Lines 576 to 581 in 6e4ff85

unless ($i->pkg_require('Tk', $i->GetVar('tcl_version'))) {
warn $@; # in case of failure: warn to show this error for user
unless ($i->pkg_require('Tk')) { # try w/o version
die $@; # ...and then re-die to have this error for user
}
}

This sort of usage has been present at least since 1.04.

I ask because I predict it will cause a warning for future planned Tcl/Tk releases, where the versions of Tk will not necessarily match the Tcl version. Specifically, there is no Tk 9.0 planned: instead Tk 8.7 will be compatible both with Tcl 8.7 and Tcl 9.0, so it seems there could be a spurious warning for Tcl 9.0 and Tk 8.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions