Page 1 of 1

Some new OOP bugs

PostPosted: Mar 4, 2005 @ 5:34pm
by Dragnir

PostPosted: Mar 4, 2005 @ 7:33pm
by kornalius
Don't use the self. statement, to call a private method inside a class just use the method's name.

proc class.test
self.method; // is not supported in PPL.
end;

proc class.test
method; // is though.
end;

PostPosted: Mar 4, 2005 @ 7:40pm
by kornalius

PostPosted: Mar 5, 2005 @ 9:24am
by Dragnir
Hi Kornalius,
You misunderstood a problem a bit:
As you can see in main proc we inited the Tchild object, and then we call procedure of parent object which calls doTest(),so the Tchild.doTest() proc should be called instead of Tparent.doTest, thats why i used self$ to make ppl know which type of object now in use and to call right procedure, what is more, it worked okay except that example.

PostPosted: Mar 5, 2005 @ 3:44pm
by kornalius

PostPosted: Mar 12, 2005 @ 1:45pm
by Guest

PostPosted: Mar 12, 2005 @ 1:48pm
by Dragnir

PostPosted: Mar 12, 2005 @ 11:52pm
by kornalius

PostPosted: Mar 15, 2005 @ 4:13pm
by kornalius

PostPosted: Mar 15, 2005 @ 5:40pm
by Dragnir
Thanks Kornalius, and what about the first bug in this topic ( about self.method calls)?

PostPosted: Mar 15, 2005 @ 6:29pm
by kornalius
It was fixed partly, I just fixed the self.call() syntax to work properly now.