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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,34a625e98d6a8792 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 23 Jul 2004 22:14:17 -0500 Date: Fri, 23 Jul 2004 23:14:16 -0400 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: The right way to handle this difference in Ada References: <4O%Lc.147269$JR4.139335@attbi_s54> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.90.114 X-Trace: sv3-hTQpwrUk7dG/Irke8IYofeeMTOzR0A3HAF/Hbs+TOBYgUAGopKmvRbrT1urZCfZ7u0TuLxw+mMHXQCU!JjK+7XjbqXPCBMMs37YDJ0NXSBTTeHAN45qWdfLtc3/8R/TvK4KEoiYa85InqA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: g2news1.google.com comp.lang.ada:2368 Date: 2004-07-23T23:14:16-04:00 List-Id: Marius Amado Alves wrote: > For some reason in this part of the reply Steve has regressed to what he > himself calls "C/C++ thinking". Original Poster, ignore. I think Steve admitted as much: > Since you indicated your background is C++, I'm guessing you want the type > to behave more like an unsigned value in C++ and ignore out of range > conditions. If that is the case, change your definition to... There are cases where an Ada programmer will use a modular type, because modular behavior is desired. Marius' point is that not wanting to think about error conditions is poor Ada practice, I assume, not that modular types should be considered evil. -- Robert I. Eachus "The flames kindled on the Fourth of July, 1776, have spread over too much of the globe to be extinguished by the feeble engines of despotism; on the contrary, they will consume these engines and all who work them." -- Thomas Jefferson, 1821