Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
2
Task/Exceptions/Modula-3/exceptions-1.mod3
Normal file
2
Task/Exceptions/Modula-3/exceptions-1.mod3
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
EXCEPTION EndOfFile;
|
||||
EXCEPTION Error(TEXT);
|
||||
4
Task/Exceptions/Modula-3/exceptions-2.mod3
Normal file
4
Task/Exceptions/Modula-3/exceptions-2.mod3
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
PROCEDURE Foo() RAISES { EndOfFile } =
|
||||
...
|
||||
RAISE EndOfFile;
|
||||
...
|
||||
5
Task/Exceptions/Modula-3/exceptions-3.mod3
Normal file
5
Task/Exceptions/Modula-3/exceptions-3.mod3
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TRY
|
||||
Foo();
|
||||
EXCEPT
|
||||
| EndOfFile => HandleFoo();
|
||||
END;
|
||||
5
Task/Exceptions/Modula-3/exceptions-4.mod3
Normal file
5
Task/Exceptions/Modula-3/exceptions-4.mod3
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TRY
|
||||
Foo();
|
||||
FINALLY
|
||||
CleanupFoo(); (* always executed *)
|
||||
END;
|
||||
Loading…
Add table
Add a link
Reference in a new issue