langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/Exceptions/PL-I/exceptions.pli
Normal file
11
Task/Exceptions/PL-I/exceptions.pli
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* Define a new exception, called "my_condition". */
|
||||
on condition (my_condition) snap begin;
|
||||
put skip list ('My condition raised.');
|
||||
end;
|
||||
|
||||
/* Raise that exception */
|
||||
signal condition (my_condition);
|
||||
|
||||
/* Raising that exception causes the message "My condition raised" */
|
||||
/* to be printed, and execution then resumes at the statement */
|
||||
/* following the SIGNAL statement. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue