Mercurial Hosting > luan
comparison website/src/manual.html @ 1389:eb8b35dccd99
cleanup and stringify change
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 03 Sep 2019 22:54:31 -0600 |
| parents | f5368cd8c056 |
| children | 9dfff82dfc59 |
comparison
equal
deleted
inserted
replaced
| 1388:2024d23ddd64 | 1389:eb8b35dccd99 |
|---|---|
| 2066 removes the metatable of the given table. | 2066 removes the metatable of the given table. |
| 2067 If the original metatable has a <code>"__metatable"</code> field, | 2067 If the original metatable has a <code>"__metatable"</code> field, |
| 2068 raises an error. | 2068 raises an error. |
| 2069 | 2069 |
| 2070 | 2070 |
| 2071 <h4 heading><a name="Luan.stringify" href="#Luan.stringify"><code>Luan.stringify (v [,strict])</code></a></h4> | 2071 <h4 heading><a name="Luan.stringify" href="#Luan.stringify"><code>Luan.stringify (v [,options])</code></a></h4> |
| 2072 | 2072 |
| 2073 <p> | 2073 <p> |
| 2074 Receives a value of any type and converts it to a string that is a Luan expression. <code>strict</code> is a string. If <code>strict</code> is 'strict' then invalid types throw an error. If <code>strict</code> is nil then invalid types are represented but the resulting expression is invalid. <code>strict</code> defaults to <b>nil</b>. | 2074 Receives a value of any type and converts it to a string that is a Luan expression. <code>options</code> is a table. If <code>options.strict==true</code> then invalid types throw an error. Otherwise invalid types are represented but the resulting expression is invalid. If <code>options.number_types==true</code> then numbers will be wrapped in functions for their type. |
| 2075 | 2075 |
| 2076 | 2076 |
| 2077 <h4 heading><a name="Luan.to_string" href="#Luan.to_string"><code>Luan.to_string (v)</code></a></h4> | 2077 <h4 heading><a name="Luan.to_string" href="#Luan.to_string"><code>Luan.to_string (v)</code></a></h4> |
| 2078 | 2078 |
| 2079 <p> | 2079 <p> |
