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-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r33g2000yqn.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Interfacing with C ; an ununsed fields dilemma Date: Fri, 3 Jul 2009 00:21:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <5a416858-4a52-412d-8051-6dadb5eadb2c@t21g2000yqi.googlegroups.com> <52ec9991-ece0-4e36-acfc-367fa37b15eb@x3g2000yqa.googlegroups.com> NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1246605712 10166 127.0.0.1 (3 Jul 2009 07:21:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 3 Jul 2009 07:21:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r33g2000yqn.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6819 Date: 2009-07-03T00:21:52-07:00 List-Id: On 3 Lip, 01:21, Hibou57 (Yannick Duch=EAne) wrote: > Not religiously, just beceause I think this would be more difficult. Yes. > May be I'm wrong, but it seems to me that there is not real standard > ABI for C++ (for the comment in passing) That's why writing a sanitizing thin layer in C is a way to go. There is no need to standardize every corner of all languages, it is enough to standardize their "common denominators". Note also that ABI is only part of the problem, so solving it would not be enough. Other important problems are in name overloading, templates and exceptions. It is not even clear if standardizing these at the bit level would be beneficial, because having some implementation freedom in there ensures a competition opportunity for compiler writers. This is exactly the same in Ada, by the way. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada