comp.lang.ada
 help / color / mirror / Atom feed
* Keyword reuse.
@ 1990-07-03 21:29 Scott Swart
  1990-07-05 20:21 ` stt
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Swart @ 1990-07-03 21:29 UTC (permalink / raw)


I feel a little stupid.  I have been complaining for the last several months about
the fact that Ada doesn't have a reraise for exceptions.  Reading another post
today, I noticed that "raise;" in an exception handler reraises the exception.

OK, so I should have looked it up. But why reuse raise.  For that matter, why reuse
return, then, else, in and probably others.  To me using the same keyword in
different contexts is just confusing.  My best guess is that there was a requirement
for a maximum number of keywords so that the language would be "simple."  Does
anyone know the real explaination?


Scott Swarts

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Keyword reuse.
  1990-07-03 21:29 Keyword reuse Scott Swart
@ 1990-07-05 20:21 ` stt
  0 siblings, 0 replies; 2+ messages in thread
From: stt @ 1990-07-05 20:21 UTC (permalink / raw)



Re: reuse of keywords

There *is* a cost to adding reserved words.  The ones
I "run" into most often are "entry" and "select," where
I am minding my own business writing a simple queueing package,
or a simple menu package, and suddenly a bolt of lightning
out of the tasking side of Ada hits me and my identifiers
get declared RESERVED FOR MULTITASKING.

In any case, what in one person's view is "inappropriate reuse"
in another person's view is "appropriate overloading."
"Raise;" seems like an appropriate overloading to me,
but of course, I have read the "green book" so many times
that I dream in Ada... :-}

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1990-07-05 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-07-03 21:29 Keyword reuse Scott Swart
1990-07-05 20:21 ` stt

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