Re: std.uni.CodepointSet from range of pairs of integers

2024-02-19 Thread Carl Sturtivant via Digitalmars-d-learn
On Monday, 19 February 2024 at 04:47:07 UTC, Richard (Rikki) Andrew Cattermole wrote: 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: Indeed, nothing in that function body would suggest it needs to be a forwar

Re: std.uni.CodepointSet from range of pairs of integers

2024-02-19 Thread Carl Sturtivant via Digitalmars-d-learn
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. I should have noticed this!

Re: std.uni.CodepointSet from range of pairs of integers

2024-02-18 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
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 bes

Re: std.uni.CodepointSet from range of pairs of integers

2024-02-18 Thread Carl Sturtivant via Digitalmars-d-learn
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 construct

Re: std.uni.CodepointSet from range of pairs of integers

2024-02-18 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
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).

std.uni.CodepointSet from range of pairs of integers

2024-02-18 Thread Carl Sturtivant via Digitalmars-d-learn
I wanted to construct a CodepointSet from a string, so I used the constructor here. https://dlang.org/phobos/std_uni.html#.InversionList.this.2 I wrote a range of pairs (CodepointIntervals) of integers consisting of each codepoint in the string paired with that plus one. This did solve the pro