On 19/02/2024 5:33 PM, Carl Sturtivant wrote:
On Monday, 19 February 2024 at 01:42:03 UTC, Richard (Rikki) Andrew Cattermole wrote:
I can understand ``pure``.

https://github.com/dlang/phobos/blob/master/std/uni/package.d#L2075

It is literally on the constructor.

Now @safe I don't know. My best guess would be for some reason the constructor is getting inferred as it (templates get inferred).

What about needing a forward range, not just an input range? It would seem it just needs to iterate through a sequence of pairs of integers.

Indeed, nothing in that function body would suggest it needs to be a forward range.

Ah yup, the body was changed but never updated its template conditional.

https://github.com/dlang/phobos/commit/c9f1c42ed3a8bb92e48bf400ce2f31f434a99905
  • std.uni.Codepoin... Carl Sturtivant via Digitalmars-d-learn
    • Re: std.uni... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: std... Carl Sturtivant via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Carl Sturtivant via Digitalmars-d-learn
      • Re: std... Carl Sturtivant via Digitalmars-d-learn

Reply via email to