Bug#582525: called to early to check prototype but no warning, docs vague

Niko Tyni ntyni at debian.org
Fri Apr 10 10:49:41 UTC 2015


found 582525 5.20.2-3
forwarded 582525 https://rt.perl.org/Public/Bug/Display.html?id=92704
thanks

On Fri, May 21, 2010 at 04:35:24PM +0100, Ian Jackson wrote:
> Package: perl
> Version: 5.10.0-19lenny2
> 
> Summary: it is possible for a function to be called too early to check
>  its prototype but for this not to generate the "called too early to
>  check prototype" warning.  Also the documentation is less than ideal.
> 
> In the example t.pl below, the function spong is called by zoom, which
> is lexically before the definition of spong.  The output shows that
> spong's prototype is not being used for the call from zoom.  However,
> this does not generate any warning.

[...]

Just a note that https://rt.perl.org/Public/Bug/Display.html?id=92704
is very much related and even mentions this issue. That part seems to be
pretty much 'upstream wontfix'. Of course the docs could always be better.
-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list