- Joined
- Mar 17, 2009
- Messages
- 1,350
@ Eleandor:
And as you see, since I thought what I said wasn't clear enough, I quoted PP. I didn't go deep into details, 'cause I know that doing so would simply confuse the users.
And why would they need to detect it when I already told them to avoid those integers?
@ aznricepuff:
Thanks for the support
First of all I said generally what the problem is:Eleandor said:Uh, sure, but he doesn't say how to detect bugs like that.
Deuterium said:Thus, the information it might carry while looping could be changed due to any interception by other triggers which also contain Integer A. What happens then - once the looping of the original trigger resumes - is that the value of Integer A is different leading to faulty looping - i.e. bug.
PurplePoot said:The actual reason is because (Integer A) is a global so two loops running it at once interfere with one another as they both access it and change it at the same time (more accurately, one changes it while the other is waiting for the first to finish).
And as you see, since I thought what I said wasn't clear enough, I quoted PP. I didn't go deep into details, 'cause I know that doing so would simply confuse the users.
And why would they need to detect it when I already told them to avoid those integers?
Oh really?Eleandor said:He just says to use different variables for each loop you have, and honestly that's just idiot.
It's a bug nevertheless.Eleandor said:Especially when bugs like this happen in maybe 2% of the triggers you have.
Well, once a global is indexed, it functions in a common manner to a local variable, except much less efficient. And also a trigger would intercept it's own actions, so even if the global isn't indexed and the spell is instant, as long as it's unique for that trigger, it's safe.Eleandor said:Those are local variables.
One of the burden's of using GUI.Eleandor said:Creating a separate global variable for each iterator is just going to explode your variablelist when you don't have to. And the GUI variable list is already ugly.
@ aznricepuff:
Thanks for the support