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-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Interfacing C type, unconstrained array with record Date: Sun, 17 Oct 2010 11:20:19 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yh2uZIhl9r9vSAGTc/ig38aqjkWYIcTw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:SG4c0NTk3i+O6UUf1ndQdL+ld20= sha1:bGh3fI+FszG433xP6lgoiqs33kU= Xref: g2news2.google.com comp.lang.ada:15553 Date: 2010-10-17T11:20:19+01:00 List-Id: Jeffrey Carter writes: > On 10/16/2010 12:19 PM, Ron Wills wrote: >> >> The "pragma Convention" did the trick! I must say, Ada is the one >> language I've encountered that seems to have the largest learning >> curve because of the most cryptic references I ever seen ;) > > You should probably finish learning Ada before trying to do stuff like > interfacing with C. Then you'd realize the "cryptic references" are > all due to C. I agree about the cryptic references being because of C, but .. people normally start on a new language because they have a project in mind and it seems like a possible fit; and if that project involves interfacing with C, that's where they're going to begin. Personally (but them I've been doing this for a while) I found the ARM sections on interfacing pragmas (http://www.adaic.com/standards/05rm/html/RM-B-1.html) and interfacing with C and C++ (http://www.adaic.com/standards/05rm/html/RM-B-3.html) clear -- except that I started at the second, and only found the link to the first half-way down the page.