std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]

Seb seb at wilzba.ch
Mon Jun 22 15:29:25 UTC 2020


On Monday, 22 June 2020 at 12:28:06 UTC, FeepingCreature wrote:
>
> I think maybe what is needed is a notion of "head-mutable"?

It's called Final and already in Phobos:

https://dlang.org/phobos/std_experimental_typecons.html#.Final

Though it comes with a few bugs like e.g. [1] or [2].

[1] https://issues.dlang.org/show_bug.cgi?id=17272
[2] https://github.com/dlang/phobos/pull/6596


More information about the Digitalmars-d mailing list