This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Some new OOP bugs


Some new OOP bugs

Postby Dragnir » Mar 4, 2005 @ 5:34pm

Dragnir
pm Member
 
Posts: 44
Joined: Nov 3, 2004 @ 9:49am
Location: Saint-Petersburg, Russia


Postby kornalius » Mar 4, 2005 @ 7:33pm

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;
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Mar 4, 2005 @ 7:40pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dragnir » Mar 5, 2005 @ 9:24am

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.
Dragnir
pm Member
 
Posts: 44
Joined: Nov 3, 2004 @ 9:49am
Location: Saint-Petersburg, Russia


Postby kornalius » Mar 5, 2005 @ 3:44pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Guest » Mar 12, 2005 @ 1:45pm

Guest
 


Postby Dragnir » Mar 12, 2005 @ 1:48pm

Dragnir
pm Member
 
Posts: 44
Joined: Nov 3, 2004 @ 9:49am
Location: Saint-Petersburg, Russia


Postby kornalius » Mar 12, 2005 @ 11:52pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Mar 15, 2005 @ 4:13pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dragnir » Mar 15, 2005 @ 5:40pm

Thanks Kornalius, and what about the first bug in this topic ( about self.method calls)?
Dragnir
pm Member
 
Posts: 44
Joined: Nov 3, 2004 @ 9:49am
Location: Saint-Petersburg, Russia


Postby kornalius » Mar 15, 2005 @ 6:29pm

It was fixed partly, I just fixed the self.call() syntax to work properly now.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum