develooper Front page | perl.perl5.porters | Postings from September 2017

Re: It would be nice to have a porting test that checks that macroarguments involved in expressions are parenthesized

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
September 20, 2017 15:38
Subject:
Re: It would be nice to have a porting test that checks that macroarguments involved in expressions are parenthesized
Message ID:
20170920153844.8986.qmail@lists-nntp.develooper.com
Karl Williamson wrote:
> On 09/15/2017 07:01 AM, Father Chrysostomos wrote:
> > Karl Williamson wrote:
> >> In case someone is so moved.
> >
> > Exceptions would have to be made for macros like DEBUG_S_warn in op.c.
> >
> 
> I don't see any operations where those arguments could have precedence
> issues in the definition of that macro.

Precisely.  That macro must *not* have parentheses around 'args', but
a naive porting test would flag it.  That is why a porting test would
need an exceptions list.

Thread Previous | 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