Mercurial Hosting > luan
diff website/src/manual.html.luan @ 589:97c8ae330efe
add varargs to Luan.try;
add Io.output_to and Io.output_of;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 26 Aug 2015 04:38:37 -0600 |
parents | 5d4652d78ce0 |
children | b73f005f3735 |
line wrap: on
line diff
--- a/website/src/manual.html.luan Tue Aug 25 10:07:37 2015 -0600 +++ b/website/src/manual.html.luan Wed Aug 26 04:38:37 2015 -0600 @@ -2176,10 +2176,10 @@ -<h4 heading><a name="Luan.try"><code>Luan.try (t)</code></a></h4> - -<p> -Implements try-catch as found in other languages where each block is in table <code>t</code>. <code>t[1]</code> is the "try" block. The <code>t.catch</code> and <code>t.finally</code> blocks are optional. Returns the result of the "try" block or the "catch" block. +<h4 heading><a name="Luan.try"><code>Luan.try (t, ···)</code></a></h4> + +<p> +Implements try-catch as found in other languages where each block is in table <code>t</code>. <code>t[1]</code> is the "try" block. The <code>t.catch</code> and <code>t.finally</code> blocks are optional. Any extra arguments are passed to the "try" function. Returns the result of the "try" block or the "catch" block. <p> Example use: