On Fri, Jan 18, 2019 at 10:53:23PM +0000, Ali via Digitalmars-d-learn wrote:
> Hello. I am having an issue with the code below. the out put after
> compiling is this :
> 
> Deprecation: foreach: loop index implicitly converted from size_t to
> uint
> 
> the code is :
> 
> auto available = new int[cast(uint) max - min];

Replace uint with size_t.


>               foreach (uint i, ref a; available)

Ditto.


>                       a = min + i;
> 
> Any help would be highly appreciated.


T

-- 
Study gravitation, it's a field with a lot of potential.
  • Deprecation Ali via Digitalmars-d-learn
    • Re: Deprecation H. S. Teoh via Digitalmars-d-learn
    • Re: Deprecation Neia Neutuladh via Digitalmars-d-learn
    • Re: Deprecation Steven Schveighoffer via Digitalmars-d-learn

Reply via email to