From: j.khaldi@oltrelinux.com
Subject: Re: From Pascal to Ada
Date: Sat, 03 Nov 2007 06:29:03 -0700
Date: 2007-11-03T06:29:03-07:00 [thread overview]
Message-ID: <1194096543.239692.101110@z9g2000hsf.googlegroups.com> (raw)
In-Reply-To: <877il1cz9h.fsf@ludovic-brenta.org>
On Nov 2, 12:38 am, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:
> j.kha...@oltrelinux.com writes:
> > Hi,
> > how do you translate this Pascal code in Ada?
>
> > type
> > realFunction = function(x: double): double;
>
> generic
> with function Func (X : Long_Float) return Long_Float;
> procedure Apply (To : in out Vector);
>
Well, I am porting a math library from Object Pascal (Delphi and Free
Pascal) to Ada.
The original library was written in C and I translated it to Object
Pascal many
years ago. As other C libraries it uses a lot of pointer to functions
and the
translation between C and Object pascal code was a straitful word to
word.
The library has a lot of functions, very fast and I am using it for a
long time in
many projects without arising a single bug.
Lastly I am very interested in Ada and as first "serious" exercice, I
am trying a
fast "mechanical" translation, almost word to word, from Object Pascal
to Ada of this
library.
Jilani
next prev parent reply other threads:[~2007-11-03 13:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 22:44 From Pascal to Ada j.khaldi
2007-11-01 23:38 ` Ludovic Brenta
2007-11-03 13:29 ` j.khaldi [this message]
2007-11-03 13:51 ` Ludovic Brenta
2007-11-01 23:44 ` anon
2007-11-01 23:45 ` Adam Beneschan
2007-11-03 13:04 ` j.khaldi
2007-11-02 0:01 ` (see below)
2007-11-02 1:02 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox