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
h2xs AUTOLOAD problem #991
Comments
From swmcd@world.std.comsub AUTOLOAD { *$AUTOLOAD = sub () { $val }; So if I have a constant in a .h file #define FOO 17 and I try to get to it from Perl print FOO(); I get an error Prototype mismatch: sub Foo::FOO vs () at blib/lib/Foo.pm line 40. unless I predeclare FOO() with the correct prototype sub FOO (); Is this a bug or a feature? - SWM world:~/PM/dev/Foo>perl -V Characteristics of this binary (from libperl): |
From @gsarOn Mon, 27 Dec 1999 01:21:53 EST, Steven W McDougall wrote:
It is a feature. You are expected to define constant subs with an empty Sarathy |
From The RT System itselffeature, not a bug. |
Migrated from rt.perl.org#1941 (status was 'resolved')
Searchable as RT1941$
The text was updated successfully, but these errors were encountered: