comparison website/src/manual.html.luan @ 1272:95f6540b27f9

add __gc to docs
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 12 Nov 2018 21:41:25 -0700
parents e38f5869e9df
children 623dfe0e2e73
comparison
equal deleted inserted replaced
1271:48f302bdc187 1272:95f6540b27f9
471 (If necessary, 471 (If necessary,
472 the metamethod itself can call <a href="#Luan.raw_set"><code>raw_set</code></a> 472 the metamethod itself can call <a href="#Luan.raw_set"><code>raw_set</code></a>
473 to do the assignment.) 473 to do the assignment.)
474 </li> 474 </li>
475 475
476 <li><p><b>"gc":</b>
477 This is when a table is garbage collected. When the table's <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#finalize()">finalize</a> method is called by the Java garbage collector, if there is a "<code>__gc</code>" metamethod then it is called with the table as a parameter.
478
479 </li>
480
476 </ul> 481 </ul>
477 482
478 483
479 484
480 485