lua-users home
lua-l archive

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


Thank you for your help, another thing learnen about metatables.

-origineel bericht-
Onderwerp: Re: Read only tables.
Van: Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>
Datum: 17-06-2009 03:34

> > setmetatable(__tMemory).__newindex=nil
> 
> wouldn't that be:
> 
> getmetatable(__tMemory).__newindex=nil

oops, you're right, sorry.