to FAQ editors…

 

 

---------- Forwarded message ---------
From: Benjamin Golinvaux <benjamin@golinvaux.com>
Date: Mon, May 20, 2019 at 7:26 AM
Subject: isocpp.org Question/Comment
To: <admin@isocpp.org>



Hello

In the
https://isocpp.org/wiki/faq/misc-technical-issues#macros-with-multi-stmts
page, in my humble opinion, there shouldn't be a newline between "else" and
"(void)0" or a backslash ("") is missing after else:

#define MYMACRO(a, b)
 if (true) {
 statement1;
 statement2;
 /*...*/
 statementN;
 } else
 (void)0
 â†‘ // Intentionally not adding a ; here!

This is a problem because it may puzzle beginners trying to use this very
clever trick. I remember it being correct in the original C++ Faq lite, but
this could be a fictional memory :)

Best,

Benjamin

--
You received this message because you are subscribed to the Google Groups "Editors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to editors+unsubscribe@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/editors/CAAwV4_mxBH7FBD6M1NWC5f47YLq1g3%2B09BqNFGKJO9DsynFwZg%40mail.gmail.com.