std.uni.CodepointSet from range of pairs of integers
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Feb 19 04:47:07 UTC 2024
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
More information about the Digitalmars-d-learn
mailing list