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: a07f3367d7,e1bb40a3d604c4b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: What is the best way to convert Integer to Short_Short_Integer? Date: Fri, 11 Jun 2010 14:05:35 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <3133a7d5-37ec-4db7-94f0-df15b3535af1@k39g2000yqb.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1276283137 23518 69.95.181.76 (11 Jun 2010 19:05:37 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 11 Jun 2010 19:05:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Xref: g2news2.google.com comp.lang.ada:12622 Date: 2010-06-11T14:05:35-05:00 List-Id: "Maciej Sobczak" wrote in message news:3133a7d5-37ec-4db7-94f0-df15b3535af1@k39g2000yqb.googlegroups.com... > On 11 Cze, 09:07, "Jeffrey R. Carter" > wrote: ... > I have seen this argument raised many times already, but it was never > substantiated in terms actual risk estimation. > Could you please list the compilers that do not implement this type? The only predefined integer types in recent versions of Janus/Ada are Integer and Long_Integer. Janus/Ada also has a type System.Byte for compatibility with our Ada 83 compiler, and of course the various types in package Interface. I've never seen "Short_Short_Integer" in any Ada compiler (not that I've been looking). Of course, you can explicitly define an 8-bit signed integer type, but we don't predefine one (it's not very useful); Integer is 16-bit [for compatibility with our compilers going back to the beginning of time, on the 8080/Z80], and Long_Integer is 32-bit. Randy.