lua-users home
lua-l archive

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


Sivan Thiruvengadam wrote:
Yes. Its being defined there.

const char CLObject::className[] = "CLObject";
Luna< CLObject >::RegType CLObject::methods[] = {
method(CLObject,  GetType),
method(CLObject,  GetListofNumbers),
method(CLObject,  Instance),
{0,0}
};


So this works:
CLObjectInstance = CLObjectI:new()
CLObjectInstance:GetType()

but this does not:
CLObjectInstance = CLObjectI:new()
local clnumlist1 = CLObjectInstance: GetListofNumbers()
CLObjectInstance:GetType()

Am I right?

If so, what does the constructor of CLNumList do? I fear it is messing with 'self'.