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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fd173879a595bde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed.stueberl.de!blackbush.cw.net!cw.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Michael Bode Newsgroups: comp.lang.ada Subject: Re: Default rep specs for record types - documented?? Date: Sat, 05 Nov 2005 15:27:49 +0100 Organization: 1&1 Internet AG Message-ID: <87y8435fve.fsf@code-hal.de> References: NNTP-Posting-Host: p578935ea.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: online.de 1131200869 26074 87.137.53.234 (5 Nov 2005 14:27:49 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Sat, 5 Nov 2005 14:27:49 +0000 (UTC) X-message-flag: IMPORTANT MESSAGE -- PLEASE READ IMMEDIATELY!!! X-Accepted-File-Formats: ASCII, .rtf, .ps, .pdf - *NO* MS Office files User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:fLcrrJBxU4XaYmuVgjN39dz9XyM= Xref: g2news1.google.com comp.lang.ada:6239 Date: 2005-11-05T15:27:49+01:00 List-Id: Anonymous Coward writes: > Perhaps, but for interfacing with C operations (which is my case), I > would prefer to simply write "pragma convention (C, my_record)" and be > able to expect the compiler to base the representational spec purely > off the operational spec, just as the C compiler would for a structure > that only has an operational spec. But then you should be able to specify *which* C Compiler. That is which brand and version number, otherwise your Ada compiler is just guessing. E.g. the specification of type bool has changed for MS C somewhere around version 4.2 from 32 bits to 8 bits. -- Michael Bode