changeset 1272:95f6540b27f9

add __gc to docs
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 12 Nov 2018 21:41:25 -0700
parents 48f302bdc187
children ed6e8bd78c11
files website/src/manual.html.luan
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 48f302bdc187 -r 95f6540b27f9 website/src/manual.html.luan
--- a/website/src/manual.html.luan	Mon Nov 12 21:19:52 2018 -0700
+++ b/website/src/manual.html.luan	Mon Nov 12 21:41:25 2018 -0700
@@ -473,6 +473,11 @@
 to do the assignment.)
 </li>
 
+<li><p><b>"gc":</b>
+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.
+
+</li>
+
 </ul>