On Tuesday, 6 May 2014 at 00:31:04 UTC, bearophile wrote:
This is OK if "make" recognizes the repeat.take type statically and uses this information to allocate the array efficiently.

I don't think it needs any special beyond hasLength!T so it can allocate it all in one go, so it wouldn't be specialized on Take specifically, just anything with an explicit length property.
  • Re: API Adam D. Ruppe via Digitalmars-d
    • Re: API Adam D. Ruppe via Digitalmars-d
    • Re: API Walter Bright via Digitalmars-d
      • Re: API MattCoder via Digitalmars-d
      • Re: API Andrei Alexandrescu via Digitalmars-d
        • Re: API Walter Bright via Digitalmars-d
          • Re: API Andrei Alexandrescu via Digitalmars-d
          • Re: API monarch_dodra via Digitalmars-d
    • Re: API Idan Arye via Digitalmars-d
    • Re: API Brad Anderson via Digitalmars-d
      • Re: API bearophile via Digitalmars-d

Reply via email to