From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9adfbb907494972e X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,9adfbb907494972e X-Google-Attributes: gid1014db,public From: fred@genesis.demon.co.uk (Lawrence Kirby) Subject: Re: Ada to C/C++ translator needed Date: 1996/10/06 Message-ID: <844636753snz@genesis.demon.co.uk>#1/1 X-Deja-AN: 187189483 x-nntp-posting-user: fred@genesis.demon.co.uk references: <32499FA0.4B5E@magic.fr> <52feul$os2@goanna.cs.rmit.edu.au> x-mail2news-path: news.demon.net!genesis.demon.co.uk organization: none reply-to: fred@genesis.demon.co.uk newsgroups: comp.lang.c,comp.lang.ada Date: 1996-10-06T00:00:00+00:00 List-Id: In article tanmoy@qcd.lanl.gov "Tanmoy Bhattacharya" writes: >Not quite. It is still not allowed to violate constraints (This came >up in the discussion about `char a[1?1:(0,0)]' or some such >meaningless example in comp.std.c). j++ in a constant expression is a >violation of a constraint and must be diagnosed. I'm sure you're right but which constraint does it violate? >The quoted phrase may be used to declare, for example, that a `const >qualified non-volatile object initialized by a constant expression is >a constant expression wherever the declaration initializng it is >visible' (as a poster no doubt meant in a thread in c.l.c.m) in a >particular implementation. So, a devious backdoor to C++. -- ----------------------------------------- Lawrence Kirby | fred@genesis.demon.co.uk Wilts, England | 70734.126@compuserve.com -----------------------------------------