[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parenthesized return
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: parenthesized return
- From: Gregory Steuck <greg_(_at_)_nest_(_dot_)_cx>
- Date: Wed, 7 Aug 2002 15:22:50 -0700
Hello,
I noticed that OpenBSD code uses parentheses around C function return
expressions. I don't know why, so I checked style(9). I couldn't find
any explanation for why it is done. I can even imagine somebody
interpreting "Don't use parentheses unless they're required for
precedence, the statement is confusing without them, or the compiler
generates a warning without them" as a direct instruction not to use
parentheses in return. I also googled a bit without much success.
So, could somebody explain when parentheses helps in return?
Thanks
Greg
P.S. Jason, that was you who stirred up my curiosity.
Visit your host, monkey.org