comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: will ada always be supported by gcc?
Date: Thu, 24 Nov 2011 10:08:00 -0800 (PST)
Date: 2011-11-24T10:08:00-08:00	[thread overview]
Message-ID: <b442feb1-70b0-4f4e-aa4e-259986be4abe@h21g2000yqg.googlegroups.com> (raw)
In-Reply-To: a1b63b2e-b6bb-45a1-baee-aa0dc7bbebe1@d37g2000prg.googlegroups.com

On Nov 23, 12:19 pm, Chad <leo.bre...@internode.on.net> 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.



  reply	other threads:[~2011-11-24 18:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-20  2:15 will ada always be supported by gcc? leo.brewin
2011-11-20  4:08 ` anon
2011-11-20 19:37 ` John B. Matthews
2011-11-21 19:31 ` Adam Beneschan
2011-11-21 20:39   ` Simon Clubley
2011-11-21 21:39 ` Ludovic Brenta
2011-11-21 22:17   ` Simon Wright
2011-11-23  2:28   ` Yannick Duchêne (Hibou57)
2011-11-23 15:05     ` Robert A Duff
2011-11-21 22:07 ` Robert A Duff
2011-11-21 23:56   ` Randy Brukardt
2011-11-22  0:36     ` Adam Beneschan
2011-11-22 10:04       ` Patrick Jakubowski
2011-11-21 23:38 ` Jerry
2011-11-23  2:38   ` Yannick Duchêne (Hibou57)
2011-11-22 20:07 ` Sebastian Doht
2011-11-23  3:00   ` Yannick Duchêne (Hibou57)
2011-11-23  3:01     ` Yannick Duchêne (Hibou57)
2011-11-23 12:19       ` Chad
2011-11-24 18:08         ` Lucretia [this message]
2011-11-25 23:30           ` Jerry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox