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,9b05d372d1b25f25 X-Google-Attributes: gid103376,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!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 03 Jul 2008 14:52:28 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Interfacing to C and types visible to Ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <486ccb8f$0$6605$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Jul 2008 14:52:31 CEST NNTP-Posting-Host: 0e70ae32.newsspool2.arcor-online.net X-Trace: DXC=4E0;fnc\616M64>jLh>_cHTX3jmcae@Aab5D>i X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:992 Date: 2008-07-03T14:52:31+02:00 List-Id: Maciej Sobczak schrieb: > just plain "integer", which meaning can depend on how the given > library is actually used. > > We can use Interfaces.C.int for binding Ada to C, but there is still a > need to expose somehow the type to regular Ada code. What type should > be used? Your description sounds almost like the answer to me. type Whatever_Integer is range C.int'First .. C.int'Last; -- explain this > > Standard.Integer is the most natural choice, because it clearly > expresses the "domainless" character of the given type. Except, as Randy has pointed out, Integer might have a smaller range than C.int.