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-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 14 Jun 2010 09:28:52 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What is the best way to convert Integer to Short_Short_Integer? References: <3133a7d5-37ec-4db7-94f0-df15b3535af1@k39g2000yqb.googlegroups.com> <24e3f643-5bb5-44c9-89ec-093247f6c194@w12g2000yqj.googlegroups.com> In-Reply-To: <24e3f643-5bb5-44c9-89ec-093247f6c194@w12g2000yqj.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4c15da35$0$6992$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 14 Jun 2010 09:28:53 CEST NNTP-Posting-Host: 08ae4ec6.newsspool4.arcor-online.net X-Trace: DXC=Tmhe<@AYL=L78PK[oJ2ng@4IUKejVH=eCXO;AJ^nh6@clI X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11694 Date: 2010-06-14T09:28:53+02:00 List-Id: On 6/13/10 8:07 PM, Maciej Sobczak wrote: >> (I don't see how this would be different from >> the same situation in any language. For example, how many C++ compilers >> don't implement a type named Short_Short_Integer?) > > Well, here the situation is a bit easier, as no C++ compiler at all > implements a type named Short_Short_Integer. > > However, you might take this page for comparison: > > http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport I understand this nice list compares the popular PC/workstation compilers; is there a similar list for C++ compilers that includes typical Ada targets? (Maybe Windriver (EDG I understand, but...), CodeWarrior, Greenhills, ...) >>> Or is there somewhere a public list of such incompatibilities? >> >> What incompatibilities, incompatible with what? > > With Short_Short_Integer, of course. Will there be a loss of magic or purpose if you just declared the type you want, with rep clause maybe? (IOW, can't we assume that compilers will do just as good as they do for predefined types? In fact, some of the Shootout programs got better when switching to programmer defined numeric types.) If I'd need "cross language types" or "database types", then there is likely a common need and hence a community for producing a suitable package; no need to get compiler technology in the way. For example, GNADE uses 64bit types for 64bit database types. GNADE cannot be used if the compiler refuses to accept as is (one Windows compiler doesn't).