From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a571dbe59eac7150 X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: new language construct proposed Date: 1998/01/26 Message-ID: <199801261513.QAA12739@basement.replay.com>#1/1 X-Deja-AN: 319348748 Content-Transfer-Encoding: 7bit References: <34C8E253.7E9F@catalina-inter.net> Content-Type: text/plain; charset=us-ascii Organization: Replay Associates, L.L.P. Mail-To-News-Contact: postmaster@nym.alias.net X-001: Replay may or may not approve of the content of this posting X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Newsgroups: comp.lang.ada Date: 1998-01-26T00:00:00+00:00 List-Id: On Fri, 23 Jan 1998 10:32:51 -0800, "Chris Sparks (Mr. Ada)" wrote: > Hi all, > > I sure wish that the following was implemented in the language: > > raise when ; > > 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/