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,4ef4bf3098ab117 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!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Ada compiler differences Date: Mon, 18 Oct 2004 21:03:36 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-152-56-142.range81-152.btcentralplus.com X-Trace: sparta.btinternet.com 1098133416 15901 81.152.56.142 (18 Oct 2004 21:03:36 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Mon, 18 Oct 2004 21:03:36 +0000 (UTC) X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Xref: g2news1.google.com comp.lang.ada:5418 Date: 2004-10-18T21:03:36+00:00 List-Id: Luke A. Guest wrote: >> * Don't depend on predefined types (Integer, Float, Natural, etc.) >> where it makes more sense to declare a specific type for your >> specific use. > > Yeah, you'll need to define your own types, but surely these are > going to be "derived" from the default types, i.e. > > type Chutney is new Integer range 1 .. 5; > > Are you saying not to even do this? Absolutelty! :-) Leave as many aspects of the underlying representation to the compiler. It know what the target is, so in this case it may choose a 8-bit representation as opposed to say a 32-bit one. Perhaps the target has faster instructions for 8-bit data items. Cheers -- Martin --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004