New blog post on the cost of compile time

Paul Backus snarwin at gmail.com
Sat Feb 18 20:04:27 UTC 2023


On Saturday, 18 February 2023 at 19:25:01 UTC, Nick Treleaven 
wrote:
>> I did start with using `lvalueOf!R`, but then realized that 
>> since `isInputRange` validates that `typeof(R.init) == R`, I 
>> just used `R.init` as the parameter.
>
> Is that validation to detect types with redefined `init`? I 
> didn't realize Phobos needs to care about that.

There is at least one project in the project tester that uses 
redefined `init`, so yes, Phobos has to care about it (at least 
until the deprecation [1] goes through).

[1] https://github.com/dlang/dmd/pull/12512


More information about the Digitalmars-d mailing list