Christos Zoulas writes: > In article <20900.1616977...@splode.eterna.com.au>, > matthew green <m...@eterna.com.au> 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.