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
AutoLoader: goto considered harmful (especially with AutoLoaded XS) #9103
Comments
From deforest@boulder.swri.eduThe AutoLoader documentation page recommends using "goto &$AUTOLOAD" In scalar context, the '1' is dropped on the floor; in list context, In this case, the simplest workaround is to use "return &$AUTOLOAD I have tested this bug in Perl 5.8.6 and 5.8.8 under MacOS X and The bug could be fixed by updating the AutoLoad man page to use the |
From @smpetersOn Tue Nov 06 23:28:01 2007, zowie wrote:
Do you have some code that demonstrates the problem? Its much easier to Thanks, Steve Peters |
The RT System itself - Status changed from 'new' to 'open' |
From deforest@boulder.swri.eduHi, Steve, Happy to supply my test case. It uses the PDL autoloader and Inline, The below code prints "1, Tickled!" for me with Perl 5.8.6 and 5.8.8 Cheers, ----- write the following to 'tickle_bug.pdl' use Inline C=><<'EOF'; char *tickler() { On Nov 15, 2007, at 2:27 PM, Steve Peters via RT wrote:
|
Migrated from rt.perl.org#47219 (status was 'open')
Searchable as RT47219$
The text was updated successfully, but these errors were encountered: