comp.lang.ada
 help / color / mirror / Atom feed
* Ada 0x, exception idea ?
@ 2003-07-26 14:52 sk
  2003-07-26 15:53 ` John R. Strohm
  2003-07-27  9:10 ` Preben Randhol
  0 siblings, 2 replies; 25+ messages in thread
From: sk @ 2003-07-26 14:52 UTC (permalink / raw)
  To: comp.lang.ada

Hi,

IDEA

when <boolean-condition> raise <exception-name>;

OR

when <boolean-condition> then raise <exception-name>;

OR

raise <exception-name> when <boolean-condition>;

SITUATION

Call_Condition_Setting_Procedure (Paramters, Success);

if not Success then
     raise Call_Failed;
end if;


REPLACED BY

Call_Condition_Setting_Procedure (Paramters, Success);

when not Success raise Call_Failed;
OR
when not Success then raise Call_Failed;
OR
raise Call_Failed when not Success;


Thoughts ?

(This is a ghost of Timex/Sinclair Basic "ON ERR GOSUB" (sorry to
pollute with the "B" word :-)).

-- 
-------------------------------------------------
-- Merge vertically for real address
--
--     s n p @ t . o
--      k i e k c c m
-------------------------------------------------




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

end of thread, other threads:[~2003-07-28 12:41 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3F229597.3090909@myob.com>
2003-07-27 11:42 ` Ada 0x, exception idea ? sk
2003-07-27 15:33   ` Nick Roberts
2003-07-27 17:13     ` Samuel Tardieu
2003-07-28 12:41       ` Nick Roberts
2003-07-28  0:23   ` Wesley Groleau
2003-07-28  2:46     ` John R. Strohm
2003-07-28  3:23       ` Hyman Rosen
2003-07-28  3:24       ` Hyman Rosen
2003-07-27 15:51 ` sk
2003-07-27 17:22   ` Nick Roberts
2003-07-27 19:30     ` sk
2003-07-27 23:04       ` John R. Strohm
2003-07-28  0:07     ` sk
2003-07-28  0:27       ` Wesley Groleau
2003-07-28  2:50       ` John R. Strohm
2003-07-28  0:21 ` sk
2003-07-28  8:38   ` Preben Randhol
2003-07-28 11:24 ` sk
2003-07-26 14:52 sk
2003-07-26 15:53 ` John R. Strohm
2003-07-26 17:08   ` sk
2003-07-26 17:08   ` sk
2003-07-27  2:46     ` Wesley Groleau
2003-07-27 16:35     ` Hyman Rosen
2003-07-27  9:10 ` Preben Randhol

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