new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
class MAIN
|
||||
creation main
|
||||
feature main is
|
||||
local
|
||||
x, y: INTEGER;
|
||||
retried: BOOLEAN;
|
||||
do
|
||||
x := 42;
|
||||
y := 0;
|
||||
|
||||
if not retried then
|
||||
io.put_real(x / y);
|
||||
else
|
||||
print("NaN%N");
|
||||
end
|
||||
rescue
|
||||
print("Caught division by zero!%N");
|
||||
retried := True;
|
||||
retry
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue