Range Error

Bastiaan Veelo Bastiaan at Veelo.net
Sun Apr 11 20:41:35 UTC 2021


On Sunday, 11 April 2021 at 19:45:30 UTC, Ruby The Roobster wrote:
> What am I doing wrong here? Is it the 'for' loop?

Yes, there is a `7` where there should be an `i` on this line:
```d
    for(int i=7;7>=0;i--)
```
This will go on forever, so you get a range error as soon as `i < 
0`.

—Bastiaan.


More information about the Digitalmars-d-learn mailing list