Topic: Parameter "declaration" [was An old trick but...]
Author: gennaro_prota@my-deja.com (Gennaro Prota)
Date: Wed, 25 Jul 2001 17:40:20 GMT Raw View
On Wed, 25 Jul 2001 11:08:48 GMT, "James Kuyper Jr."
<kuyper@wizard.net> wrote:
>I'll grant you - if I didn't already know what was meant, I might have
>trouble figuring that out from the somewhat obscure wording.
>
Heheee...thanks! The trouble I had... that because I didn't know that
the process actually takes place in two conceptually distinct steps.
Anyway I should have understand it by reading also the other
preprocessing clauses... what to say? Shame on me! :-(
I apologize with you if now I make another (very silly) question (I'm
a curious kind of guy):
16.3p9: "The parameters are specified by the optional list of
identifiers, whose scope extends from their declaration in the
identifier list until the new-line character that terminates the
#define preprocessing directive."
Together with 16.3p5 this is the only point I found where the standard
uses the term "declaration" referred to macro parameters. Since it's
meaning is of course very different from that of an ordinary
declaration and (as far as I know) no clause defines it, shouldn't
have been better solution to say, for instance.:
"The scope of each parameter from the point of it's first lexical
occurrence within the identifier-list until the new-line ...." ?
I do not pretend it to be a precise wording: it's just a sample. I'd
just like to know if you agree in avoiding the term declaration at
all...
Thanks again! :-)
Genny.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]