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

List Behaviour Query


Postby mervjoyce » Aug 25, 2004 @ 10:26pm

Hi Kornalius,

Thanks for the garbage collection changes.

I am not sure I understand your comments on "goto".

You say that "goto" can return "true"/"false" as to whetehr it was able to move the pointer. If the index parameter is out of range it will return false and the pointer will not be changed. That makes sense.

In the sample I sent to you I pass the same arguments to both procedures:

goto(MapList$,3) and
mygoto(MapList$,3);

after calling "goto" the pointer refers to the last position in the list (eg the last map loaded [#10] - eg: it has not changed.

after then calling "mygoto" it the pointer has been changed to point to the correct [#4] map. The code in "mygoto" is working correctly!

The pointer is originally at the last item in the list - after the initial load. The list contains 10 elements. When I call "goto" I pass a parameter of "3" (eg looking for the 4th element). Are you saying "goto" will not move backwards in this scenario?
Merv Joyce
mervjoyce
pm Member
 
Posts: 113
Joined: Jun 1, 2004 @ 2:05pm
Location: Brisbane, AUSTRALIA


Postby kornalius » Aug 25, 2004 @ 11:27pm

You got it right. However Goto() should move in any direction. I will test it again tomorrow. Damn I want to fix this problem. :)
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


Previous

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

cron