comp.lang.ada
 help / color / mirror / Atom feed
From: "robin" <robin_v@bigpond.com>
Subject: Re: Buffer overflow Article - CACM
Date: Sun, 01 Jan 2006 23:12:20 GMT
Date: 2006-01-01T23:12:20+00:00	[thread overview]
Message-ID: <olZtf.165218$V7.83919@news-server.bigpond.net.au> (raw)
In-Reply-To: 4626568.XPZCFmT196@linux1.krischik.com

"Martin Krischik" <krischik@users.sourceforge.net> wrote in message
news:4626568.XPZCFmT196@linux1.krischik.com...
> robin wrote:
>
> > <adaworks@sbcglobal.net> wrote in message
> > news:3klkf.25509$dO2.19240@newssvr29.news.prodigy.net...
> >>
> >> "robin" <robin_v@bigpond.com> wrote in message
> >> news:9hhkf.10004$ea6.5952@news-server.bigpond.net.au...
> >> >
> >> > You seem to be unaware that PL/I has evolved since
> >> > it was "first designed".
> >> >
> >> It would have to have evolved quite a lot to be anywhere
> >> close to the capabilities or reliability of a language such as Ada.
> >>
> >> Perhaps you can provide a reference to some resources that
> >> would help us enlighten ourselves.
> >
> > Here's another example (I notice that you did not respond
> > to the previous example):
> >
> > PL/I can compile and execute the following source.  Can Ada do the same
> > for PL/I?
> >
> > Mixed: procedure options (main);
> >     ...
> > ADA(
> > StringReverse (S: Text) return Text is
> > begin
> >     if Length(S) <= 1
> >        then return S;
> >        else return StringReverse(Tail(S)) & Head(S);
> > end StringReverse;
> > );
> > end mixed;
> >
> > [I have not written here the PL/I code for TAIL and HEAD,
> > nor the declarations for the variables corresponding
> > to S and Text.]
>
> From the top of my head
>
> package PL_1
>
>   function String_Reverse (S : in String) return String is
>   begin
>      if S'Lenght <= 1 then
>        return S;
>      else
>        return String_Reverse (Tail(S)) & Head(S);
>      end if
>   end String_Reverse;
> end PL_1;

This is Ada code, not PL/I code.  I already supplied
Ada code in the PL/I source example above.

> Almost identical - so what's you point then.

The point is that Ada code can be compiled direct by a
PL/I compiler.





  reply	other threads:[~2006-01-01 23:12 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-13  5:14 Buffer overflow Article - CACM adaworks
2005-11-13  7:35 ` tmoran
2005-11-13  8:49 ` Martin Krischik
2005-11-13 11:55   ` Georg Bauhaus
2005-11-13 14:58     ` Florian Weimer
2005-11-14 13:44       ` Marc A. Criley
2005-11-14 19:13     ` Martin Krischik
2005-11-13 15:02 ` Florian Weimer
2005-11-13 15:44 ` Stephen Leake
2005-11-14 14:40   ` adaworks
2005-11-13 23:57 ` Jeffrey R. Carter
2005-11-14  6:51   ` Martin Dowie
2005-11-14 17:55     ` Jeffrey R. Carter
2005-11-15  9:14       ` Martin Dowie
2005-11-14  7:09   ` Pascal Obry
2005-11-14  8:35     ` Dmitry A. Kazakov
2005-11-14 20:57       ` Simon Wright
2005-11-15  8:49         ` Dmitry A. Kazakov
2005-11-15 14:03           ` Georg Bauhaus
2005-11-15 15:14             ` Dmitry A. Kazakov
2005-11-15 22:32               ` Georg Bauhaus
2005-11-16  1:21                 ` Robert A Duff
2005-11-16  9:26                 ` Dmitry A. Kazakov
2005-11-16 13:02                   ` adaworks
2005-11-17 11:13                     ` Martin Dowie
2005-11-14 17:58     ` Jeffrey R. Carter
2005-11-14 18:44       ` Larry Kilgallen
2005-11-25  5:56       ` Christopher Browne
2005-11-26  1:31         ` Jeffrey R. Carter
2005-11-27 21:36         ` adaworks
2005-11-28 12:12           ` Simon Clubley
2005-12-01  2:35           ` robin
2005-12-01  7:05             ` adaworks
2005-12-03 13:42               ` robin
2005-12-03 18:18                 ` adaworks
2005-12-12  1:23                   ` robin
2005-12-31  7:39                   ` robin
2005-12-31 17:03                     ` Georg Bauhaus
2006-01-01 12:12                     ` Martin Krischik
2006-01-01 23:12                       ` robin [this message]
2006-01-02  3:37                         ` jimmaureenrogers
2006-01-12 22:10                           ` robin
2006-01-03  9:52                         ` Georg Bauhaus
2006-01-12 22:10                           ` robin
2006-01-12 22:36                             ` Georg Bauhaus
2006-01-13 19:53                             ` Keith Thompson
2006-01-13 20:22                               ` Dan Nagle
2006-01-14 17:50                               ` Björn Persson
     [not found]                             ` <12ces1lv5dvm6pifdapj11o1hrtlm6ec7q@4ax.com>
2006-01-13 23:28                               ` robin
2005-11-30 15:27         ` robin
2005-11-14 10:17   ` Peter Amey
2005-11-29  8:16     ` Harald Korneliussen
2005-11-29 10:48       ` Peter Amey
2005-11-30 21:21       ` Brian May
2005-12-01  5:36         ` Jeffrey R. Carter
2005-12-01  9:01           ` Harald Korneliussen
2005-12-01 11:21             ` Martin Dowie
2005-12-01 17:58             ` Jeffrey R. Carter
replies disabled

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