develooper Front page | perl.perl5.porters | Postings from March 2023

unparenthesised macro expansions

Thread Next
Zefram via perl5-porters
March 7, 2023 00:10
unparenthesised macro expansions
Message ID:
I see that one of the definitions each of Perl_isfinite(), Perl_isinf(),
and Perl_isfinitel() in perl.h, and the definition of SvPADMY() in sv.h,
have a potential precedence problem.  Their expansions take the form
"!(...)", and so are vulnerable to being broken up by postfix operators.
Each of these expansions should have a pair of enclosing parens added.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About