<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://robowiki.net/w/index.php?action=history&amp;feed=atom&amp;title=Thread%3ATalk%3AMain_Page%2FWhile_loop_in_the_%27run%27_method</id>
	<title>Thread:Talk:Main Page/While loop in the 'run' method - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://robowiki.net/w/index.php?action=history&amp;feed=atom&amp;title=Thread%3ATalk%3AMain_Page%2FWhile_loop_in_the_%27run%27_method"/>
	<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/While_loop_in_the_%27run%27_method&amp;action=history"/>
	<updated>2026-04-22T02:21:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/While_loop_in_the_%27run%27_method&amp;diff=27329&amp;oldid=prev</id>
		<title>Astacus: New thread: While loop in the 'run' method</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/While_loop_in_the_%27run%27_method&amp;diff=27329&amp;oldid=prev"/>
		<updated>2012-11-05T00:40:02Z</updated>

		<summary type="html">&lt;p&gt;New thread: While loop in the &amp;#039;run&amp;#039; method&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I'm unclear as to when the &amp;lt;code&amp;gt;while&amp;lt;/code&amp;gt; loop in the &amp;lt;code&amp;gt;run&amp;lt;/code&amp;gt; method starts, so I added a debug command there:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
while(true) {&lt;br /&gt;
	setDebugProperty(&amp;quot;startingWhile&amp;quot;, String.format(&amp;quot;heading: %.1f° at time %d.&amp;quot;, getHeading(),  getTime()));&lt;br /&gt;
	ahead(200);&lt;br /&gt;
	// ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
But to my surprise, this doesn't get displayed until after the &amp;lt;code&amp;gt;ahead&amp;lt;/code&amp;gt; and all the following commands are executed, which I would assume should be the beginning of the second iteration. Is there something that prevents these debug properties from being displayed immediately?  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;To Wombi: Das ist der Fluch der guten Tat. Ich hoffe, Du bereust nicht, meine Frage beantwortet zu haben.&amp;lt;/small&amp;gt;&lt;/div&gt;</summary>
		<author><name>Astacus</name></author>
		
	</entry>
</feed>