Changes in uspace/dist/src/sysel/demos/except.sy [051b3db8:c5cb943d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/sysel/demos/except.sy
r051b3db8 rc5cb943d 29 29 class ExceptionDemo is 30 30 fun foo(), static is 31 Console.WriteLine("Entered foo().");31 Builtin.WriteLine("Entered foo()."); 32 32 raise new BaseException(); 33 33 end … … 38 38 foo(); 39 39 except e : DerivedException do 40 Console.WriteLine("Caught derived exception.");40 Builtin.WriteLine("Caught derived exception."); 41 41 except e : BaseException do 42 Console.WriteLine("Caught base exception.");42 Builtin.WriteLine("Caught base exception."); 43 43 finally do 44 Console.WriteLine("Finally.");44 Builtin.WriteLine("Finally."); 45 45 end 46 46 end
Note:
See TracChangeset
for help on using the changeset viewer.