comp.lang.ada
 help / color / mirror / Atom feed
From: leake@cme.nbs.gov (Stephe Leake)
Subject: Re: Another reason for goto
Date: 18 Jan 89 16:11:19 GMT	[thread overview]
Message-ID: <849@primus.cme.nbs.gov> (raw)
In-Reply-To: wbralick@afit-ab.arpa's message of 18 Jan 89 04:43:54 GMT


In article <820@afit-ab.arpa> wbralick@afit-ab.arpa (William A. Bralick) writes:

   ...

   However, I have yet to see a case where the goto is *necessary*  It is
   a direct tweek at the program counter and is generally at too low a 
   level of abstraction for a HOL.  If time (and space) are that critical
   in a given section of code you should "goto" C (using pragma interface)
   or assembler if absolutely necessary.

Ada can be either a High level language, _or_ a low-level one. Why
should I abandon strong typing just because I need to do something
fast? If I need a fast subroutine, I write it in "low-level" ada; no
tasks, exceptions, etc; I would feel free to use a goto (although I
have yet to see a need for one). In fact, in Ada I can use single
precision, which can often cut execution in half!

Lets not limit ourselves by arbitrary notions that _all_ Ada code must
be high-level and abstract.

Stephe Leake 	(301) 975-3431 		leake@cme.nbs.gov
National Institute of Standards and Technology
(formerly National Bureau of Standards)
Rm. B-124, Bldg. 220
Gaithersburg, MD  20899

  reply	other threads:[~1989-01-18 16:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-01-17 18:23 Another reason for goto Marc.Graham
1989-01-17 23:03 ` Ada and the infamous goto William Thomas Wolfe,2847,
1989-01-19  1:48   ` Bob Hathaway
1989-01-18  4:43 ` Another reason for goto William A. Bralick
1989-01-18 16:11   ` Stephe Leake [this message]
1989-01-19 17:46     ` William Thomas Wolfe,2847,
1989-01-24 16:58       ` Stephe Leake
replies disabled

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