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-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!z14g2000yqa.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: C interface using a record with discriminant and representation clauses Date: Tue, 30 Jun 2009 16:38:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4b0ca7ca-e84c-43a6-b3d3-6793d54da91b@z14g2000yqa.googlegroups.com> References: NNTP-Posting-Host: 77.198.58.72 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1246405138 19651 127.0.0.1 (30 Jun 2009 23:38:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Jun 2009 23:38:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000yqa.googlegroups.com; posting-host=77.198.58.72; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6775 Date: 2009-06-30T16:38:57-07:00 List-Id: A side note : I know it is better, when interfacing with C, to get ride of Ada constraints which does not exist in C, thus as an exemple, to declare array types with full range bounds (to not to be instanciated). But there, there is something which could be used as a discriminant, and I would like to try to benefit from it.