<div dir="ltr">On Tue, Sep 2, 2008 at 7:11 AM, Brendan <span dir="ltr">&lt;<a href="mailto:brenzie@gmail.com">brenzie@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Brendan Wrote:<br>
<br>
&gt; I looked through the Phobos page, but haven&#39;t found anything like it. Is there a sort of delay function anywhere in Phobos?<br>
<br>
</div>Well, I just used &#39;sleep&#39; from the Linux shell instead. I don&#39;t understand yet what I&#39;m doing wrong with the following function, though. Could someone explain and advise?<br>
<br>
<br>
void scrollString( char[] s ) {<br>
 &nbsp; &nbsp;for ( int i = 0; i &lt; s.length; i++ )<br>
 &nbsp; &nbsp; &nbsp;writef( s[i] );<br>
 &nbsp; &nbsp; &nbsp;system( &quot;sleep 0.2&quot; );<br>
 &nbsp;}<br>
<br>
</blockquote></div><br>If you&#39;re expecting it to pause after each character.. you&#39;re missing braces around the body of the for loop, this isn&#39;t Python ;)<br></div>