comp.lang.ada
 help / color / mirror / Atom feed
From: rcd@nbires.UUCP (Dick Dunn)
Subject: Re: Enumerated "procedural" parameters
Date: Thu, 3-Jul-86 03:03:26 EDT	[thread overview]
Date: Thu Jul  3 03:03:26 1986
Message-ID: <438@opus.nbires.UUCP> (raw)
In-Reply-To: 8606220749.AA27775@ucbvax.Berkeley.EDU

I think it's unfortunate that anyone ever suggested the idea of enumerating
procedures which might be called and suppying an enumeration value instead
of a procedural parameter.  The question [I hope!] was never whether one
could construct an Ada program which would have the same effect as a
program in another language using procedural parameters...Turing
equivalence is a nice tool but it's not the point.

The fact that not all languages have procedural parameters gives some
weight to the Ada position.

The fact that C, Pascal, Modula, FORTRAN, Algol, and many other languages
do have procedural parameters gives weight to the position that the lack of
procedural parameters is a shortcoming of Ada.

The argument that procedural parameters can be simulated is really
irrelevant.  The issues have to do with convenience and safety, not simple
expressive power in a theoretical sense.  (Most languages are equivalent in
that theoretical sense.)  Hence the discussion would be much more useful if
it concentrated on Ada solutions which represent something like procedural
parameters with a notation comparably concise and convenient.  Adding an
enumerated type, constructing the (unenforced!) correspondence between
enumeration values and procedures, and replacing a single procedure
invocation with a case statement over an enumeration value (assuming that
the set of procedures of interest is actually a priori enumerable!) is not
at all the same in any way of interest to a practicing programmer.  A
better answer is necessary here.
-- 
Dick Dunn	{hao,ucbvax,allegra}!nbires!rcd		(303)444-5710 x3086
   ...Simpler is better.

  reply	other threads:[~1986-07-03  7:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-05-28 15:54 ForTran-Ada + flamette + question richw
1986-05-30 12:46 ` Russ Holden
1986-06-20 15:36   ` ForTran-Ada + flamette + questi richw
1986-06-22  3:00     ` Russ Holden
1986-06-22  7:49     ` Enumerated "procedural" parameters Alastair Milne
1986-07-03  7:03       ` Dick Dunn [this message]
1986-07-10 22:26     ` ForTran-Ada + flamette + questi friesen
1986-07-11 15:38       ` ForTran-Ada ... (really function pointers) markb
1986-07-14 17:01   ` ForTran-Ada + flamette + questi richw
1986-07-18 21:59     ` vilot
1986-07-22 12:59   ` stt
1986-08-07 13:26     ` Christopher Reedy
replies disabled

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