Changeset 4fec9ee in mainline for uspace/dist/src/sysel/demos/except.sy
- Timestamp:
- 2011-03-18T16:17:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00b13408
- Parents:
- 4f66cc7b (diff), d8e61b0d (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
r4f66cc7b r4fec9ee 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.