source: to-imperative/trunk/samples/Syntax/trap4.rf @ 4085

Last change on this file since 4085 was 4026, checked in by orlov, 12 years ago
  • Tests for $trap...$with construction.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 130 bytes
Line 
1$use StdIO;
2
3$func F = e;
4
5F = $error ABCD;
6
7$func Main = e;
8Main =
9  $trap <F> $with {
10    err = <PrintLn "Catched: " err>;
11  };
Note: See TracBrowser for help on using the repository browser.