Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/share/misc



Christos Zoulas writes:
> In article <20900.1616977358%splode.eterna.com.au@localhost>,
> matthew green  <mrg%eterna.com.au@localhost> wrote:
> >> Log Message:
> >> Clarify and explain the rationale for parentheses in sizeof and return as
> >> discussed.
> >
> >+        * a function call. We always parenthesize the sizeof expression for
> >+        * consistency.
> >
> >i object.  this discussion was not finished.
>
> Ok, please provide an alternative proposal.

i already did in the other thread -- apply the existing
() rule.  aka, avoid it unless it helps comprehension,
which means simple sizeof can avoid it, but anything
slightly complex should not.  this means that all the
fun cases will use () and the specific case i won't use
it for is left alone (snprintf(buf, sizeof buf, ...)).

thanks.


.mrg.


Home | Main Index | Thread Index | Old Index