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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada,comp.lang.c++ Subject: Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 10 Mar 2005 17:36:09 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1800709.LegSC0zdoW@linux1.krischik.com> <1110099035.843154@athnrd02> NNTP-Posting-Host: shell01-e.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1110494171 14276 69.38.147.31 (10 Mar 2005 22:36:11 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 10 Mar 2005 22:36:11 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:9069 comp.lang.c++:45013 Date: 2005-03-10T17:36:09-05:00 List-Id: Jim Rogers writes: > Yes you can. You can always program in your own checks manually. > The drawback of doing that is that you cannot simply turn them off > with a pragma, nor can the compiler so effectively optimize those > checks out of your program when they are unneeded. Ada compilers can optimize away manually-programmed checks as well as built-in checks. Whether it can do so in any particular situation depends on the code -- how much information is available to allow the compiler to prove things -- but not so much on whether the checks are built in. Likewise, C++ compilers can optimize away manually-programmed checks in some cases. - Bob