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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5a84d5077c54a29d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!26g2000hsk.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ada array vs C pointer (call by reference) Date: Fri, 27 Jun 2008 13:49:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <38eba359-10b4-4ff3-b067-d292cb8518a1@26g2000hsk.googlegroups.com> References: <5df91e99-a972-48f7-b466-3eb05dc0a915@m3g2000hsc.googlegroups.com> NNTP-Posting-Host: 85.3.103.34 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214599777 17047 127.0.0.1 (27 Jun 2008 20:49:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Jun 2008 20:49:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000hsk.googlegroups.com; posting-host=85.3.103.34; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:923 Date: 2008-06-27T13:49:37-07:00 List-Id: On 27 Cze, 20:13, tmo...@acm.org wrote: > >Is there any implementation where Interfaces.C.int has different > >properties than Integer? > > Yes. Janus Ada 95 Integer is 16 bits (for compatibility with older > programs) but Interfaces.C.Int is 32 bits. Too bad - my C compiler has 16-bit int (yes, it is 100% standard compliant), so your Ada compiler will be incompatible with my C compiler. > It's amazing to me how many programmers make unwarranted assumptions. Yes. Some programmers make unwarranted assumptions that int in C is 32- bit. Amazing. > In twenty years I suppose all young programmers will assume Integers > must "of course" be 64 bits. In twenty years the only language in use will be Java (or some of its offspring) and it will have well-defined numeric types. ;-) -- Maciej Sobczak * www.msobczak.com * www.inspirel.com