Deprecation: foreach: loop index implicitly converted from size_t to int

Michael michael at
Fri Jan 18 15:34:22 UTC 2019

On Friday, 18 January 2019 at 13:29:29 UTC, Adam D. Ruppe wrote:
> On Friday, 18 January 2019 at 12:27:17 UTC, Michael wrote:
>> This, to be, looks like quite the explicit conversion, no?
> Yeah, I agree. But the language is silly. I just leave the type 
> out of foreach and explicitly cast it inside the body.

Thank you all for the concise explanations and suggestions, I 
think that's fairly straightforward. I thought perhaps I was 
doing the sensible thing of dealing with the conversion inside 
the foreach statement, but I guess not!

More information about the Digitalmars-d-learn mailing list