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!news.zanker.org!news.clara.net!wagner.news.clara.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Ada compiler differences Date: Mon, 18 Oct 2004 19:31:59 +0100 Message-ID: References: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1098124344 24442 62.49.62.197 (18 Oct 2004 18:32:24 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 18 Oct 2004 18:32:24 +0000 (UTC) User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Xref: g2news1.google.com comp.lang.ada:5411 Date: 2004-10-18T19:31:59+01:00 List-Id: On Mon, 18 Oct 2004 16:01:50 +0200, Jacob Sparre Andersen wrote: >> Or rather: how can I write code that really is platform (and >> compiler) independent in Ada? > > One advice: > > * 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? Thanks, Luke.