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: a07f3367d7,d4984245154c8ef1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Interfacing C type, unconstrained array with record Date: Sun, 17 Oct 2010 08:59:19 +0200 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 17 Oct 2010 06:59:13 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Mmy+cvvkvJlB371ai0kQzg"; logging-data="29804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JGN/B2/Gr8w53IwijehOx" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: Cancel-Lock: sha1:McSGgx6Gf1TcH3hHIm6zhDMi5jM= Xref: g2news2.google.com comp.lang.ada:15549 Date: 2010-10-17T08:59:19+02:00 List-Id: Le 16/10/2010 23:41, Robert A Duff a �crit : > "Dmitry A. Kazakov" writes: > >> You need a flat array, e.g. >> >> with Interfaces; use Interfaces; >> with Interfaces.C; use Interfaces.C; > > I'd probably write: > > with Interfaces.C; use Interfaces; > > and then refer to C.int instead of Int. > No big deal. > Nitpicking: nothing prevents you from writing C.int even in the presence of a use clause for Interfaces.C. Although I am quite liberal in using use clauses, I do that quite often when I feel it is more readable. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00