Re: #define
Ron Natalie <ron@sensor.com > wrote in message
news:3f0c2841$0 $87915$9a6e19ea @news.newshosti ng.com...[color=blue]
>
> "David White" <no@email.provi ded> wrote in message[/color]
news:KbLOa.8912 $eE.124878@nasa l.pacific.net.a u...[color=blue]
>[color=green]
> >
> > Doesn't this replace the symbol 'X' found anywhere in the source code[/color][/color]
with[color=blue][color=green]
> > the text 'Y'?[/color]
>
> No, it doesn't. Pete is right, you seem not to understand the[/color]
preprocessor.
I do. I just didn't use precise enough language in this pedantic place. I am
aware that the 'X' in 'MAX' would not be replaced by 'Y'.
[color=blue][color=green]
> > Given that macros _do_ replace text, why should an undefined symbol[/color][/color]
become[color=blue][color=green]
> > '0' rather than ''?[/color]
>
> They do not replace text, they replace tokens.[/color]
Okay. Why you didn't correct Stroustrup's loose language as well? :)
Getting off the track.
DW
Ron Natalie <ron@sensor.com > wrote in message
news:3f0c2841$0 $87915$9a6e19ea @news.newshosti ng.com...[color=blue]
>
> "David White" <no@email.provi ded> wrote in message[/color]
news:KbLOa.8912 $eE.124878@nasa l.pacific.net.a u...[color=blue]
>[color=green]
> >
> > Doesn't this replace the symbol 'X' found anywhere in the source code[/color][/color]
with[color=blue][color=green]
> > the text 'Y'?[/color]
>
> No, it doesn't. Pete is right, you seem not to understand the[/color]
preprocessor.
I do. I just didn't use precise enough language in this pedantic place. I am
aware that the 'X' in 'MAX' would not be replaced by 'Y'.
[color=blue][color=green]
> > Given that macros _do_ replace text, why should an undefined symbol[/color][/color]
become[color=blue][color=green]
> > '0' rather than ''?[/color]
>
> They do not replace text, they replace tokens.[/color]
Okay. Why you didn't correct Stroustrup's loose language as well? :)
Getting off the track.
DW
Comment