Mercurial Hosting > luan
comparison website/src/manual.html.luan @ 1189:73d754b1889f
add stringify
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 23 Feb 2018 01:40:04 -0700 |
parents | 1f9d34a6f308 |
children | 9a57f0b16c2b |
comparison
equal
deleted
inserted
replaced
1188:9f5edbef3f55 | 1189:73d754b1889f |
---|---|
2079 removes the metatable of the given table. | 2079 removes the metatable of the given table. |
2080 If the original metatable has a <code>"__metatable"</code> field, | 2080 If the original metatable has a <code>"__metatable"</code> field, |
2081 raises an error. | 2081 raises an error. |
2082 | 2082 |
2083 | 2083 |
2084 <h4 heading><a name="Luan.stringify" href="#Luan.stringify"><code>Luan.stringify (v [,strict])</code></a></h4> | |
2085 | |
2086 <p> | |
2087 Receives a value of any type and converts it to a string that is a Luan expression. <code>strict</code> is a boolean. If <code>strict</code> is true then invalid types throw an error. If <code>strict</code> is false then invalid types are represented but the resulting expression is invalid. <code>strict</code> defaults to <b>true</b>. | |
2088 | |
2084 | 2089 |
2085 <h4 heading><a name="Luan.to_string" href="#Luan.to_string"><code>Luan.to_string (v)</code></a></h4> | 2090 <h4 heading><a name="Luan.to_string" href="#Luan.to_string"><code>Luan.to_string (v)</code></a></h4> |
2086 | 2091 |
2087 <p> | 2092 <p> |
2088 Receives a value of any type and | 2093 Receives a value of any type and |