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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,caabf5265fad78e5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: unsigned type Reply-To: anon@anon.org (anon) References: <59O1m.404661$4m1.69194@bgtnsc05-news.ops.worldnet.att.net> <36286c5a-99f0-4ed9-8ef0-11d7af230216@e21g2000yqb.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sun, 28 Jun 2009 23:08:28 GMT NNTP-Posting-Host: 12.64.120.167 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1246230508 12.64.120.167 (Sun, 28 Jun 2009 23:08:28 GMT) NNTP-Posting-Date: Sun, 28 Jun 2009 23:08:28 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:6690 Date: 2009-06-28T23:08:28+00:00 List-Id: Yea, Right! Like, how many people need a trinary system. There are a few, a very few! And as for Natural, well, that is the definition of a String's index and in most cases you use Naturals in "for loop' statements. And if you use the standard types instead of creating your own you would save problem when another modifies the program! Alway use standard if possible, That way every program rather Ada or C or etc known the type and the range. Never create your own types unless lives are an issue. And most who use GPL GNAT are not writting program where lives matter. In <36286c5a-99f0-4ed9-8ef0-11d7af230216@e21g2000yqb.googlegroups.com>, Ludovic Brenta writes: >anon wrote on comp.lang.ada >> with Interfaces ; =A0-- =A0 >> use =A0Interfaces ; =A0-- >> >> Unless you need a special type just uses the predefined types in this pac= >kage. =A0 > >Note that you will need a special type most of the time; you'd use >Interfaces.Unsigned_* only when interfacing with hardware or other >compilers. Similarly, you should not use the predefined types >Integer, Natural or Positive to represent your problem domain's >entities; use them only when interfacing with the predefined library >(Ada.*). > >-- >Ludovic Brenta.