|
|
||
|
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'.