Range Error

Ruby The Roobster michaeleverestc79 at gmail.com
Mon Apr 12 12:46:55 UTC 2021


On Sunday, 11 April 2021 at 20:41:35 UTC, Bastiaan Veelo wrote:
> 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.

I have fixed this.


More information about the Digitalmars-d-learn mailing list