macro expansion vs replacement

P

Pavel

Are the meanings of the terms
a. "macro expansion" used in 16-1, 16.1-4 of the Standard and
b. "macro replacement" used everywhere else
exactly same?

Thanks in advance,
-Pavel
 
V

Victor Bazarov

Are the meanings of the terms
a. "macro expansion" used in 16-1, 16.1-4 of the Standard and
b. "macro replacement" used everywhere else
exactly same?

"Expanded" applied to macros is also used in 2.2/4 (Phases of
translation). It seems (to me) that "expansion" is the process of
*replacing* all macros with their respective substitutes. Each
occurrence, however, is a "replacement".

V
 
P

Pavel

Victor said:
"Expanded" applied to macros is also used in 2.2/4 (Phases of translation). It
seems (to me) that "expansion" is the process of *replacing* all macros with
their respective substitutes. Each occurrence, however, is a "replacement".

V
Thanks -- now after reading your answer and re-reading 16.1-4 I think you are
right. The texts seem to refer to macro expansion as a step that consists of
macro replacements in the context of processing controlling constant expression
... uff.

-Pavel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top