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.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98ad5b2a2cd88a53 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,98ad5b2a2cd88a53 X-Google-Attributes: gid109fba,public From: "William McKenzie" Subject: Re: Ada or C++ acting 'correctly' here? Date: 1999/02/28 Message-ID: #1/1 X-Deja-AN: 449488369 References: <7b8c7u$sj1@drn.newsguy.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 X-Trace: news12.ispnews.com 920203149 209.144.232.4 (Sun, 28 Feb 1999 06:59:09 EDT) NNTP-Posting-Date: Sun, 28 Feb 1999 06:59:09 EDT Newsgroups: comp.lang.ada,comp.lang.c++ Date: 1999-02-28T00:00:00+00:00 List-Id: With -W3, always a good idea, microsoft will give you an 'integral constant overflow' message on the expression. With -WX -W3 you could even say it behaves as well as the ADA compiler. Cheers, Bill -- William McKenzie CarteWright, Inc. w_s_m@g5.com bill@mooner wrote in message <7b8c7u$sj1@drn.newsguy.com>... >Hello, > >compare these 2 little programs, do same thing, one in C++ >and one in Ada. The C++ program compiles Ok, but result is >negative, the Ada program refused to compile: