comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: What is the best way to convert Integer to Short_Short_Integer?
Date: Mon, 14 Jun 2010 09:28:52 +0200
Date: 2010-06-14T09:28:53+02:00	[thread overview]
Message-ID: <4c15da35$0$6992$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <24e3f643-5bb5-44c9-89ec-093247f6c194@w12g2000yqj.googlegroups.com>

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).



  reply	other threads:[~2010-06-14  7:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-11  1:17 What is the best way to convert Integer to Short_Short_Integer? Adrian Hoe
2010-06-11  2:21 ` Adrian Hoe
2010-06-11  3:14 ` Jeffrey R. Carter
2010-06-11  4:26   ` Adrian Hoe
2010-06-11  7:07     ` Jeffrey R. Carter
2010-06-11  8:59       ` J-P. Rosen
2010-06-11 12:28       ` Maciej Sobczak
2010-06-11 19:05         ` Randy Brukardt
2010-06-13  4:26         ` BrianG
2010-06-13 18:07           ` Maciej Sobczak
2010-06-14  7:28             ` Georg Bauhaus [this message]
2010-06-14 16:45             ` Keith Thompson
2010-06-15  4:54               ` Martin Krischik
2010-06-22 21:48                 ` Keith Thompson
2010-06-15  2:24             ` BrianG
2010-06-15 21:21               ` Maciej Sobczak
2010-06-15 23:39                 ` Georg Bauhaus
2010-06-16  1:27                 ` BrianG
2010-06-11 12:31       ` Brian Drummond
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox