From -8805431911332339395
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,add62e0f5e586127
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-09-26 10:57:54 PST
Path: bga.com!news.sprintlink.net!howland.reston.ans.net!wupost!news.utdallas.edu!corpgate!nrtphaa9.nt.com!mhh
From: mhh@b4pph108.rus.uni-stuttgart.de (Mark Hollomon)
Newsgroups: comp.std.c++
Subject: Re: compile time consts
Date: 26 Sep 1994 17:40:37 GMT
Organization: BNR, RTP, NC
Lines: 19
Sender: mhh@b4pph108.bnr.ca
Message-ID: <36712l$g8d@nrtphaa9.nt.com>
References: <1994Sep19.110228.3591@fmrco.uucp> <weissmanCwHpDL.LD5@netcom.com> <rfgCwMJB4.E1s@netcom.com> <DDR.94Sep26105635@drongs.dcs.ed.ac.uk>
NNTP-Posting-Host: b4pph108.nt.com

In article <DDR.94Sep26105635@drongs.dcs.ed.ac.uk>,
Douglas Rogers <ddr@dcs.ed.ac.uk> wrote:
>Ronald F Guilmette writes:
>No worries, but now if we use an expression, in C the rules are clear,
>the preprocessor must have certain mathematical capability ie:-
>
>    #define STRING_LEN 60
>    #define MAX_STRING STRING_LEN + 1;
>
>    char string[MAX_STRING];

Actually, this doesn't require the preprocessor to know anything about expressions.
what the compiler sees is:

      char string[60 + 1];

Try the -P option on your compiler.

---- Mark Hollomon


