comp.lang.ada
 help / color / mirror / Atom feed
From: nobody@REPLAY.COM (Anonymous)
Subject: Re: new language construct proposed
Date: 1998/01/26
Date: 1998-01-26T00:00:00+00:00	[thread overview]
Message-ID: <199801261513.QAA12739@basement.replay.com> (raw)
In-Reply-To: 34C8E253.7E9F@catalina-inter.net


On Fri, 23 Jan 1998 10:32:51 -0800, "Chris Sparks (Mr. Ada)"
<mrada@CATALINA-INTER.NET> wrote:

> Hi all,
> 
> I sure wish that the following was implemented in the language:
> 
> raise <EXCEPTION> when <CONDITIONAL_EXPRESSION>;
> 
> oh well....
> 
> 
> Chris Sparks
> 
> 

I submitted a revision request for this:

raise [exception_name] [when boolean_expression];

thinking it would be clear, easy to implement, not cause any problem
with existing Ada-83 code, and be useful. It didn't make it into the
revised language.

Note that the exception name is optional so you can use it in an
exception handler.

A "when" clause on the return statement would also be clear, useful,
easy to implement, and not cause any problem with existing code. Since
exit, raise, and return all send the execution elsewhere in the code,
for completeness we should as for when on goto statements, too, but
maybe they should remain harder to write.

Jeff Carter  PGP:1024/440FBE21
My real e-mail address: ( carter @ innocon . com )
"English bed-wetting types."
Monty Python & the Holy Grail

Posted with Spam Hater - see
http://www.compulink.co.uk/~net-services/spam/




  parent reply	other threads:[~1998-01-26  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-23  0:00 new language construct proposed Chris Sparks (Mr. Ada)
1998-01-23  0:00 ` Nick Roberts
1998-01-26  0:00 ` Anonymous [this message]
1998-01-30  0:00   ` Ray Blaak
1998-02-01  0:00   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1998-01-31  0:00 tmoran
1998-01-31  0:00 ` Nick Roberts
1998-02-01  0:00 ` Robert Dewar
1998-02-14  0:00   ` Corey Ashford
replies disabled

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