Range Error
Ruby The Roobster
michaeleverestc79 at gmail.com
Mon Apr 12 12:46:23 UTC 2021
On Monday, 12 April 2021 at 01:22:12 UTC, Steven Schveighoffer
wrote:
> On 4/11/21 4:41 PM, 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`.
>...
I fixed the code now. It works. Thanks for your help.
More information about the Digitalmars-d-learn
mailing list