Welcome, Guest. Please login or register.

Author Topic: Loooooong thought...Perfect algorithm for...  (Read 3198 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Fats

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 672
    • Show all replies
Re: Loooooong thought...Perfect algorithm for...
« on: October 20, 2005, 08:12:29 PM »
Quote

Jose wrote:
Now the problem is one of the possible actions is to change the arguments of the others and of itself, again if certain conditions are meet. But if a previously linked list of actions to execute, with the option to wait for the previous one to finish before starting it's execution (execute one after the other) set, is still executing, changing the arguments of the list will alter the arguments of the previously still executing list.


I would solve this problem by making a list that records the changes that have to be made to the parameters and apply them at the appropriate time. This would mean that you only allocate memory when something has to be remembered.
If you don't know when is the right time to apply the parameter change, you have a bigger problem.

greets,
Staf.
Trust me...                                              I know what I\'m doing