Article View: comp.lang.c.moderated
Article #2001Re: NEW CONTEST!
From: Stan Ryckman
Date: Thu, 15 Feb 1996 15:47
Date: Thu, 15 Feb 1996 15:47
27 lines
1428 bytes
1428 bytes
In article <4fst1l$2ar@solutions.solon.com>,
Gene Wirchenko <genew@mindlink.bc.ca> wrote:
|stanr@tiac.net (Stan Ryckman) wrote:
|
|[snip previous posters' stuff (including mine so no whining<g>)]
Whine. :-)
|>Actually, compilers will allow this just fine. He just left out one
|>line:
|> #define case CasE /* makes the compiler happy */
|>(The program itself didn't use switch.)
|
| Immaterial. "case" is a keyword. My reason for including it was
|that the case of the CASE parm was wrong. ("CASE" vs. "case")
Immaterial. "case" is a keyword in translation phase 7. At the point
it gets converted by #define (translation phase 4) it is merely a
preprocessing token. A keyword is a token, and tokens don't
get processed syntactically until t.p.7.
[snip previous posters' sigs (including mine so no whining :-)]
Cheers,
Stan.
--
Stan Ryckman (stanr@tiac.net) (new e-mail address)
Technical Details
Message-ID:
<4fvkin$f01@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4f555e$6tr@solutions.solon.com> <4fnbih$91f@solutions.solon.com> <4fp2qc$hej@solutions.solon.com> <4fst1l$2ar@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: stanr@tiac.net (Stan Ryckman) Newsgroups: comp.lang.c.moderated Subject: Re: NEW CONTEST! Date: 15 Feb 1996 09:47:35 -0600 Organization: Amber & Sneakers Fan Club Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4fvkin$f01@solutions.solon.com> References: <4f555e$6tr@solutions.solon.com> <4fnbih$91f@solutions.solon.com> <4fp2qc$hej@solutions.solon.com> <4fst1l$2ar@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com