comparison website/src/manual.html.luan @ 491:4dc9cb26a3a8

raw_set and set_metatable now return void instead of LuanTable
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 May 2015 13:05:01 -0600
parents ddee9f5167d8
children b36cc406d3d2
comparison
equal deleted inserted replaced
490:ddee9f5167d8 491:4dc9cb26a3a8
2180 without invoking any metamethod. 2180 without invoking any metamethod.
2181 <tt>table</tt> must be a table, 2181 <tt>table</tt> must be a table,
2182 <tt>index</tt> any value different from <b>nil</b>, 2182 <tt>index</tt> any value different from <b>nil</b>,
2183 and <tt>value</tt> any Lua value. 2183 and <tt>value</tt> any Lua value.
2184 2184
2185 <p>
2186 This function returns <tt>table</tt>.
2187
2188 2185
2189 <h4 <%=heading_options%> ><a name="Luan.set_metatable"><tt>Luan.set_metatable (table, metatable)</tt></a></h4> 2186 <h4 <%=heading_options%> ><a name="Luan.set_metatable"><tt>Luan.set_metatable (table, metatable)</tt></a></h4>
2190 2187
2191 <p> 2188 <p>
2192 Sets the metatable for the given table. 2189 Sets the metatable for the given table.
2193 If <tt>metatable</tt> is <b>nil</b>, 2190 If <tt>metatable</tt> is <b>nil</b>,
2194 removes the metatable of the given table. 2191 removes the metatable of the given table.
2195 If the original metatable has a <tt>"__metatable"</tt> field, 2192 If the original metatable has a <tt>"__metatable"</tt> field,
2196 raises an error. 2193 raises an error.
2197
2198
2199 <p>
2200 This function returns <tt>table</tt>.
2201 2194
2202 2195
2203 2196
2204 2197
2205 <p> 2198 <p>