comp.lang.ada
 help / color / mirror / Atom feed
From: dalamb@qucis.UUCP (David Lamb)
Subject: Re: ForTran-Ada + flamette + question
Date: Wed, 28-May-86 15:30:28 EDT	[thread overview]
Date: Wed May 28 15:30:28 1986
Message-ID: <136@qucis.UUCP> (raw)
In-Reply-To: 8605210805.AA20308@ucbvax.Berkeley.EDU

Someone recently asked if there was any way to pass procedures as
parameters in Ada, or place them in records;  I think the problem in
question was doing key-to-procedure bindings in an editor.  Ada has
neither of these directly;  you can sometimes simulate them in ugly
ways.  You can simulate procedure parameters via generics: pass the
procedures or functions as generic parameters, and hope your compiler
is smart enough to pass them as procedures at runtime.  You can get
procedure variables (or record fields) with the tasking mechanism
(yech!) as shown in "Simulating Procedure Variables with Ada Tasks",
D.A. Lamb and P. Hilfinger, IEEE Trans. Soft. Eng.  v9#1 (Jan 83).

  parent reply	other threads:[~1986-05-28 19:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-05-21  6:06 ForTran-Ada + flamette + question larry
1986-05-21 15:41 ` Mark Biggar
1986-05-21 16:40 ` broman
1986-05-27 13:07   ` ForTran-Ada ... (really procedure variables) Vic Churchill
1986-05-28 19:30 ` David Lamb [this message]
     [not found] <175155@QZCOM>
1986-05-22  1:00 ` ForTran-Ada + flamette + question Jan_Michael_Rynning
  -- strict thread matches above, loose matches on Subject: below --
1986-05-28 15:54 richw
1986-05-30 12:46 ` Russ Holden
1986-05-28 16:56 richw
1986-05-30 16:28 ` Vincent P. Broman
1986-06-02 16:28   ` Jonathan P. Biggar
1986-06-03  5:11     ` Barry Margolin
1986-06-03 12:39     ` Russ Holden
1986-06-04 23:39   ` Bryce Bardin
replies disabled

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