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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,508516c114ade8e1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.72 with SMTP id gg8mr15668454pbc.4.1328666669873; Tue, 07 Feb 2012 18:04:29 -0800 (PST) Path: lh20ni272538pbb.0!nntp.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsfeed.freenet.ag!newsfeed.kamp.net!newsfeed.kamp.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: BrianG Newsgroups: comp.lang.ada Subject: Re: ada without ada libraries? Date: Tue, 07 Feb 2012 21:04:27 -0500 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Wed, 8 Feb 2012 02:04:29 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="TtuQlFl1tCpi+XZRA9iuwg"; logging-data="31375"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pVIkdLkTG6lT2svPbY0E9" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 In-Reply-To: Cancel-Lock: sha1:vnBH3hFgw+4pVFK5CZOBbKl6kNY= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-02-07T21:04:27-05:00 List-Id: On 02/07/2012 04:14 PM, Patrick wrote: > Hi Everyone > > I just got my compiler set up the way I want it and I am ready for my > first ada project. > > I have spent sometime with lua. Lua's library support is terrible but > lots of people love the language. Many people just build a rough > skeleton application in C and call it from lua. > > Lua handles all the type checking and much of the logic in this > arrangement and C is mostly just library code. > > Would this same approach seem logical for ada? -Patrick This might make sense, if you're claiming that Ada's "library support is terrible"; else, why would you make this comparison? It sounds like you want to use Ada, but not use the Ada libraries. If you instead want to use Ada with a library for which you don't have an Ada interface, you can build (or look for) a binding to that library. This is done in Ada, not in another language. See the Ada packages Interfaces.*. Typically, you don't need to program in anything except Ada - that way, you get Ada's protection (to the extent possible) in with binding, just not within the library itself. -- --- BrianG 000 @[Google's email domain] .com