lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



>If you really need to keep track of the number of hash entries, one
solution
>is to create a new hash class and assign a suitable __len metamethod. For
>example:

If there were a metamethod called when a table element is deleted (set to
nil) you could do without the proxy table here (and in many other
situations).

Having a __removeindex metamethod is something *I* would like in 5.2 :)


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.3/445 - Release Date: 11/09/2006