Submitter: WG21
Submission Date: 2004-10-26
Source: WG21
Reference Document: ISO/IEC
WG14 N1068
Version: 1.0
Date: 2006-03-05
Subject: 6.10.3p10: Clarifiying arguments vs.
parameters
Summary
Obviously, what appear in the definition syntax of a function-like macro are not its arguments, but its parameters. On the other hand, what is similar syntactically to a function call is obviously the invocation of the macro, not its definition. Clearly, there is confusion about whether this sentence is talking about the definition or an invocation.
Perhaps it would be clearer yet to say something like, "a function-like macro which takes arguments, similarly syntactically to a function call".
Suggested Technical Corrigendum
Change 6.10.3p10:
A preprocessing directive of the form
# define identifier lparen identifier-listopt ) replacement-list new-line
# define identifier lparen ... ) replacement-list new-line
# define identifier lparen identifier-list , ... ) replacement-list new-linedefines a function-like macro with
argumentsparameters, similar syntactically to a function call.
Technical Corrigendum
Change 6.10.3p10:
A preprocessing directive of the form
# define identifier lparen identifier-listopt ) replacement-list new-line
# define identifier lparen ... ) replacement-list new-line
# define identifier lparen identifier-list , ... ) replacement-list new-linedefines a function-like macro with
argumentsparameters, whose use is similar syntactically to a function call.