comp.lang.ada
 help / color / mirror / Atom feed
From: <adaworks@sbcglobal.net>
Subject: Re: What was the first programming language to use 'generics'?...
Date: Sun, 21 Aug 2005 17:33:19 GMT
Date: 2005-08-21T17:33:19+00:00	[thread overview]
Message-ID: <zV2Oe.321$eQ.269@newssvr30.news.prodigy.com> (raw)
In-Reply-To: 43045094_1@glkas0286.greenlnk.net


"Martin Dowie" <martin.dowie@baesystems.com> wrote in message
news:43045094_1@glkas0286.greenlnk.net...
> ...and were they called 'generics'?
>
> Not Ada but I just know /someone/ here will know this! ;-)
>
My first exposure to generics was with generic sort programs.

Consider, in the early sort programs supplied for operating systems
we had a set of behaviors already programmed.   All we had to do
was supply a description of the data.   Ada generics are a lot like
that.  We reuse behavior while describing the data to be processed
with that behavior.

With those sort facilities, we could even add some additional code for
what we called an "own code" sort.  Typically the "own code" was
used to accomplish some special input or output procedures on the
data.  This is analogous to generic formal subprograms or (in Ada 95)
generic formal package parameters.

My earliest recollection of this was for the IBM 1401 where our "own
code" was written in Autocoder.  Later, I discovered this same capability
was on other platforms, including the entire 360/370 series (along with
those that used IBM's operating systems), and all the machines from the
"seven dwarfs."    COBOL even has a SORT verb as part of the language
that one could think of as a generic capability.

So, the first high-order language to have a generic capability might well
be COBOL.

Richard Riehle





  parent reply	other threads:[~2005-08-21 17:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18  9:18 OT: What was the first programming language to use 'generics'? Martin Dowie
2005-08-18 11:29 ` Jean-Pierre Rosen
2005-08-19 16:25   ` Charles Lindsey
2005-08-18 21:11 ` David Trudgett
2005-08-18 21:36   ` Robert A Duff
2005-08-18 23:43     ` David Trudgett
2005-08-19  2:13       ` OT: What was the first programming language to use Larry Kilgallen
2005-08-19  9:44         ` David Trudgett
2005-08-19 14:22         ` jayessay
2005-08-19 15:08       ` OT: What was the first programming language to use 'generics'? Robert A Duff
2005-08-19 18:09         ` jayessay
2005-08-19 15:42     ` jayessay
2005-08-19  2:47 ` Jeffrey R. Carter
2005-08-21 17:33 ` adaworks [this message]
     [not found]   ` <odeig19vmplnbt67s3s148eb4mqrk9vujd@4ax.com>
2005-08-23  7:03     ` adaworks
replies disabled

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