Threading challenge: calculate fib(45) while spinning

Steven Schveighoffer schveiguy at gmail.com
Fri Oct 15 14:21:59 UTC 2021


On 10/15/21 10:01 AM, Ali Çehreli wrote:
>  >    writefln!"\rFibonacci(%d) = %d"(n, fibN);
> 
> That '\r' bothered me because the actual work needs to know what the 
> spinner is doing to clear its remaining character.

I would expect the original go code had the same problem.

-Steve


More information about the Digitalmars-d-learn mailing list