Exceptions: Difference between revisions
m
→{{header|langur}}
Langurmonkey (talk | contribs) (→shortened catch: .err to _err) |
Langurmonkey (talk | contribs) |
||
Line 1,534:
A catch causes all the statements preceding it within a block to be the implicit try block.
<lang langur># do something
Line 1,551 ⟶ 1,549:
...
}</lang>
An else section on a catch is optional. As of 0.7, you can also use else if on a catch. The parser wraps it into the else block of the catch, so that it looks the same to the compiler and VM.
=== shortened catch ===
|