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-Thread: 103376,998480123ade4649 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.39.100 with SMTP id o4mr8831968pbk.0.1322158172263; Thu, 24 Nov 2011 10:09:32 -0800 (PST) Path: lh20ni13579pbb.0!nntp.google.com!news1.google.com!postnews.google.com!h21g2000yqg.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: will ada always be supported by gcc? Date: Thu, 24 Nov 2011 10:08:00 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4ecc00f2$0$4148$6e1ede2f@read.cnntp.org> NNTP-Posting-Host: 90.194.162.219 Mime-Version: 1.0 X-Trace: posting.google.com 1322158172 28627 127.0.0.1 (24 Nov 2011 18:09:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Nov 2011 18:09:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h21g2000yqg.googlegroups.com; posting-host=90.194.162.219; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.16) Gecko/20110929 Iceweasel/3.5.16 (like Firefox/3.5.16),gzip(gfe) Xref: news1.google.com comp.lang.ada:19120 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-11-24T10:08:00-08:00 List-Id: On Nov 23, 12:19=A0pm, Chad wrote: > Many thanks for all the replies. I'm sold on the move to Ada. Given > that i) Ada is platform gnostic and ii) Ada will be available on at > least one platform for most of my working life I'm confident that I'll > have easy access to a working Ada compiler for many years to come. > This is very comforting. And I do like the look of Ada code. So, the > big conversion begins (and yes I will be using p2ada as a workhorse > but with lots of little sed-scripts to assist). > > Cheers, > Leo The problem with Pascal is that Standard Pascal is limited (i.e. structured BASIC for learning), everything else is a hack on top, with each being incompatible with each other. If I was you, I would look into interfacing Ada with your Pascal code. Normally, Pascal passes params left to right (unlike C, which is r-to- l due to ...), Ada I would think would pass in a similar manner, might not be the same though. If not, might be worth looking into the compiler to extend it with Interfaces.Pascal (or GPC) and the param passing mechanism, so you can import Pascal procedures/functions as Ada subprograms. e.g. procedure Some_GPC_Thingy; pragma import(Pascal, Some_GPC_Thingy); Would be better than porting Pascal -> Ada. Luke.