Also you should probably use for loops in your specific example, just in case 
you didn't know what they were
    
    
    import os
    proc waitAndPrint(what: string, iterations: int, millisecs: int) =
      for i in 1..iterations:
        stdout.write what
        stdout.flushFile()
        sleep(millisecs)
    
    
    Run

Reply via email to