Guys, we're all overlooking the primary reason to explicitly include the "(void)": it makes the function feel better.
A function who works hard to do a job only to have some of that effort ignored could eventually develop issues with self-confidence, ultimately leading toward a lifestyle full of destructive habits. Such functions are, as we know from experience in meatspace, rarely as productive as they could be, and soon become the unwilling targets of whispered dismissals about how much potential they once held. Nestled between two parentheticals, with no spaces to separate them (perish the thought!), that function instead feels the warmth and closelness of his soft-edged neighbors, the value of his purpose, and the assurance that while his return value was not needed -- in this instance, at least -- his effort is nevertheless recognized as having been exerted. And that's comforting. Let's love our functions. (void)snuggle(you, me); -- C-Mike -- C. Michael Pilato <cmpil...@collab.net> CollabNet <> www.collab.net <> Enterprise Cloud Development
signature.asc
Description: OpenPGP digital signature