[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Undocumented/Buggy Behavior with Function Definitions
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 1 Nov 2009 00:17:02 -0200
> However, this code doesn't seem to work:
> do
> local cdoc
> local docs
> local function newindex(G,k,v)
> docs[k]=cdoc
You need to initialize docs:
local docs={}