[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Newbie question
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 24 May 2010 15:30:58 +0400
> function graph:new(o)
> o = o or {}
> setmetatable(o,self)
> self._index = self
> return o
> end
Note that __index should have two underscores. Yours has only one.
HTH,
Alexander.