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: 103376,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!e511c328!not-for-mail From: Charles D Hixson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Iceape/1.0.7 (Debian-1.0.7-2) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How come Ada isn't more popular? References: <1169531612.200010.153120@38g2000cwa.googlegroups.com> <51m6rqF1kqpr0U1@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 27 Jan 2007 05:22:15 GMT NNTP-Posting-Host: 66.245.56.19 X-Complaints-To: abuse@earthlink.net X-Trace: newsread4.news.pas.earthlink.net 1169875335 66.245.56.19 (Fri, 26 Jan 2007 21:22:15 PST) NNTP-Posting-Date: Fri, 26 Jan 2007 21:22:15 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news2.google.com comp.lang.ada:8617 Date: 2007-01-27T05:22:15+00:00 List-Id: Dr. Adrian Wrigley wrote: > On Tue, 23 Jan 2007 11:38:28 +0100, Alex R. Mosteo wrote: > >> artifact.one@googlemail.com wrote: >> >>> ... > I think this is critical. Why can't we just say: > > with stdio; > > pragma import (C, stdio, "stdio.h"); > > and be able to get structs, functions, constants, variables from C in > an obvious and reasonably reliable way? > > Much of what is in C has direct analogs in Ada. Some of it is via > fiddly #defines, but even a useful subset of these would be e > > And of course compilers should spit out header files on request > matching an ada package via the "obvious" rules, so you can > #include it from C. > -- > Adrian > > That would be very nice. Notice that it's divided into two pieces: 1) import c header files, and 2) export header files for C While both would be extremely useful, and 1, perhaps, more than 2, it seems to me that 2 would be much more readily accomplished.