Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bare Exists not working under TkHijack #12

Open
chrstphrchvz opened this issue Feb 7, 2021 · 1 comment
Open

bare Exists not working under TkHijack #12

chrstphrchvz opened this issue Feb 7, 2021 · 1 comment
Labels
bug Something isn't working Perl/Tk compatibility

Comments

@chrstphrchvz
Copy link
Owner

(Migrated from https://rt.cpan.org/Ticket/Display.html?id=125390.)

If a program uses Exists (and possibly other symbols) instead of Tk::Exists, an error results:

    Can't locate object method "Exists" via package "MyPackage" at MyPackage.pm line nnn.

One workaround is to replace Exists with Tk::Exists.

I'm not yet sure what causes this. Tcl/pTk.pm does have @EXPORT (@perlTk, …); where my @perlTk = qw(… Exists …);, and TkHijack.pm redefines Tk::Exists to Tcl::pTk::Exists. And most other bare symbols like MainLoop seem to work fine.

@chrstphrchvz chrstphrchvz added the bug Something isn't working label Feb 14, 2021
@chrstphrchvz
Copy link
Owner Author

There needs to be a test for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Perl/Tk compatibility
Projects
None yet
Development

No branches or pull requests

1 participant