Difference between revisions of "Talk:while"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Forever ?)
 
m (Forever ?)
 
(5 intermediate revisions by 3 users not shown)
Line 4: Line 4:
  
 
Meaning in the example below forever is really only 13hrs. 10000*5/60*60.
 
Meaning in the example below forever is really only 13hrs. 10000*5/60*60.
 
+
<code><nowiki>
 
_forever=true;
 
_forever=true;
 
 
while {( forever)} do {
 
while {( forever)} do {
  
// do something
+
    // do something
 
     sleep 5;
 
     sleep 5;
 +
 
};
 
};
 +
</nowiki></code>
 +
[[User:BarmyArmy|BarmyArmy]]BarmyArmy
  
[[User:BarmyArmy|BarmyArmy]]BarmyArmy
+
: This is already addressed in [[Control_Structures#while-Loop]] though I think you are right about the implicit suggestion to add this in the article. -- [[User:Manny|Manny]] 18:50, 2 May 2007 (CEST)
 +
::Does this hold true with any kind of looping command? Like a for-loop? (as far as ArmA is concerned) --[[User:Doolittle|Doolittle]] 08:51, 22 June 2007 (CEST)
 +
:::I found this: ''5134 - Fixed: Limit of iterations in while cycle no longer applied for scripts ran through execVM or spawn'' --[[User:Doolittle|Doolittle]] 02:59, 12 July 2007 (CEST)
 +
:::
 +
the awfulness of this inconsistent language syntax means:
 +
 
 +
while {forever} do // will fail without the otherwise meaningless ()'s
 +
 
 +
[[User:Mikero|Mikero (nee Ook?)]] 12:25, 5 June 2012 (CEST)

Latest revision as of 12:25, 5 June 2012

Forever ?

There is a BIS set limit on how many-time a while loop will run, I believe it is 10,000 times.

Meaning in the example below forever is really only 13hrs. 10000*5/60*60. _forever=true; while {( forever)} do { // do something sleep 5; }; BarmyArmyBarmyArmy

This is already addressed in Control_Structures#while-Loop though I think you are right about the implicit suggestion to add this in the article. -- Manny 18:50, 2 May 2007 (CEST)
Does this hold true with any kind of looping command? Like a for-loop? (as far as ArmA is concerned) --Doolittle 08:51, 22 June 2007 (CEST)
I found this: 5134 - Fixed: Limit of iterations in while cycle no longer applied for scripts ran through execVM or spawn --Doolittle 02:59, 12 July 2007 (CEST)

the awfulness of this inconsistent language syntax means:

while {forever} do // will fail without the otherwise meaningless ()'s

Mikero (nee Ook?) 12:25, 5 June 2012 (CEST)