comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wwgrol@ftw.rsc.raytheon.com>
Subject: Re: Looking for Ada Technique Name and References
Date: 2000/02/29
Date: 2000-02-29T00:00:00+00:00	[thread overview]
Message-ID: <38BC267E.47FAEDD@ftw.rsc.raytheon.com> (raw)
In-Reply-To: Pine.BSF.4.21.0002290914250.6230-100000@shell5.ba.best.com

> Well, the topic has really changed, but if you are going to rank languages
> based on their support for the functional programming paradigm, I'd give
> Ada a fairly significant edge over C and C++ .....

I once saw an example where someone (who obviously 
misunderstood the "mandate") wrote an Ada 83 package 
containing (I'm probably getting some of this wrong 
due to elapsed time):

  - an enumerated type where the literals were
    LISP predefined function names.

  - an unconstrained array type of those enums

  - Various support subprograms (I forget the
    details) that took the array type as parameter.

  - A subprogram that iterates over an enum array
    object and uses each element as a case selector.

Then this guy wrote his whole program in LISP, and 
with a trivial syntax transformation, could compile 
it with an Ada compiler and run it:

with LISP_Support; use LISP_Support;
procedure Main is

begin

   LISP(( CAR (( CDR (( atom, atom, atom )) .....
      ..... ));

   -- I don't know LISP, so I made up the above
   -- just to give the flavor....

end Main;

If anyone else saw this, and can tell me where to find
it, I'd love to see it again!  :-)

-- 
Wes Groleau
http://freepages.genealogy.rootsweb.com/~wgroleau




  reply	other threads:[~2000-02-29  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <88kegp$iso$1@coward.ks.cc.utah.edu>
     [not found] ` <88kh6q$j4j$1@coward.ks.cc.utah.edu>
2000-02-18  0:00   ` Looking for Ada Technique Name and References Tucker Taft
2000-02-21  0:00   ` Diana Webster
2000-02-22  0:00     ` John Halleck
2000-02-22  0:00       ` tmoran
2000-02-22  0:00         ` David Starner
2000-02-23  0:00           ` tmoran
2000-02-22  0:00       ` Vladimir Olensky
2000-02-22  0:00         ` John Halleck
2000-02-23  0:00       ` Nick Roberts
2000-02-22  0:00         ` Jon S Anthony
2000-02-28  0:00           ` Charles D. Hixson
2000-02-28  0:00             ` Jon S Anthony
2000-02-29  0:00               ` Charles Hixson
2000-02-29  0:00                 ` Brian Rogoff
2000-02-29  0:00                   ` Wes Groleau [this message]
2000-02-29  0:00                     ` Gautier
2000-03-01  0:00                       ` Wes Groleau
2000-02-29  0:00                   ` Jon S Anthony
2000-02-29  0:00                     ` Brian Rogoff
2000-02-29  0:00                       ` Jon S Anthony
2000-03-01  0:00                         ` Charles Hixson
2000-03-01  0:00                         ` Brian Rogoff
2000-03-01  0:00                           ` Jon S Anthony
2000-03-04  0:00                     ` Nick Roberts
2000-02-22  0:00   ` Gautier
replies disabled

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