weak keys are removed only after finalization

This commit is contained in:
Roberto Ierusalimschy
2002-07-01 14:06:58 -03:00
parent 5fabed21a1
commit 9f4b5b5232
3 changed files with 53 additions and 15 deletions

9
ltm.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.h,v 1.36 2002/06/24 20:17:59 roberto Exp roberto $
** $Id: ltm.h,v 1.37 2002/06/25 19:17:22 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -10,6 +10,13 @@
#include "lobject.h"
/*
** Important: garbage collection uses two extra bits of `Table.flags'
** (after TM_MODE), so the maximum number of `fast tag methods' is six
** (at least while `flags' is a byte).
*/
/*
* WARNING: if you change the order of this enumeration,
* grep "ORDER TM"