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,e1bb40a3d604c4b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!news.mixmin.net!eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: What is the best way to convert Integer to Short_Short_Integer? Date: Fri, 11 Jun 2010 10:59:53 +0200 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 11 Jun 2010 09:00:02 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Dn22F68J9CHYFQQlT81DGA"; logging-data="18522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iykfaNIb70PaPCKt8eY74" User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: Cancel-Lock: sha1:J8sUuuQItx45UxHV6fFdsswTsng= Xref: g2news2.google.com comp.lang.ada:12603 Date: 2010-06-11T10:59:53+02:00 List-Id: Jeffrey R. Carter a �crit : > Implementations are not required to define Short_Short_Integer (or any > other predefined integer type except Integer), so the program may fail > on other compilers. Thus, the use of Short_Short_Integer is not portable. > But the use of Interfaces.Integer_8 is OK. Guaranteed to be signed integer on 8 bits, or to be undefined if the machine does not support such a type - which is a good thing. If you need 8 bit integers and the machine does not support them, you'd better know ASAP! -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr