Changeset 4611094f in mainline for uspace/dist/src/sysel/demos/except.sy
- Timestamp:
- 2011-03-20T19:09:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cfbcd86
- Parents:
- 8c76c30 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/sysel/demos/except.sy
r8c76c30 r4611094f 29 29 class ExceptionDemo is 30 30 fun foo(), static is 31 Builtin.WriteLine("Entered foo().");31 Console.WriteLine("Entered foo()."); 32 32 raise new BaseException(); 33 33 end … … 38 38 foo(); 39 39 except e : DerivedException do 40 Builtin.WriteLine("Caught derived exception.");40 Console.WriteLine("Caught derived exception."); 41 41 except e : BaseException do 42 Builtin.WriteLine("Caught base exception.");42 Console.WriteLine("Caught base exception."); 43 43 finally do 44 Builtin.WriteLine("Finally.");44 Console.WriteLine("Finally."); 45 45 end 46 46 end
Note:
See TracChangeset
for help on using the changeset viewer.