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

unparenthesised macro expansions

Thread Next
From:
Zefram via perl5-porters
Date:
March 7, 2023 00:10
Subject:
unparenthesised macro expansions
Message ID:
ZAaA9vnMgYWs6Wyr@fysh.org
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.

-zefram

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About