🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #833

Re: What is a constant expression

#833
From: Conor P. Cahill
Date: Mon, 23 Oct 1989 23:40
26 lines
1498 bytes
In article <10983@riks.csl.sony.co.jp>, diamond@csl.sony.co.jp (Norman Diamond) writes:
> In article <727@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes:
> >#define	prequote(x) 'x
> >#define postquote(x) x'
> 
> I do not believe that this can possibly work in ANSI C.  Consider the
> following tweaks:
> 
> #define prequote(x)  'x /* is this a comment? */
> #define postquote(x) x' /* is this a comment? */

But he (dave) didn't put any comments to the right of his example, so as long
as there isn't any extra white space to the right of the code, it 
*should* work (on both pre and post ANSI).

Dave gave a good (although yukie) solution to the problem.  He didn't claim
that you could do anything with his solution and have it still work.




-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+
Technical Details
Message-ID: <1989Oct23.234038.27509@virtech.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!virtech!cpcahil
References: <1219@crdos1.crd.ge.COM> <727@lakart.UUCP> <10983@riks.csl.sony.co.jp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!virtech!cpcahil
From: cpcahil@virtech.uucp (Conor P. Cahill)
Newsgroups: comp.std.c
Subject: Re: What is a constant expression
Message-ID: <1989Oct23.234038.27509@virtech.uucp>
Date: 23 Oct 89 23:40:38 GMT
References: <1219@crdos1.crd.ge.COM> <727@lakart.UUCP> <10983@riks.csl.sony.co.jp>
Organization: Virtual Technologies Inc.
Lines: 26