On Saturday, 27 May 2023 at 13:23:38 UTC, vushu wrote:
[...]Is there something equivalent in dlang, doesn't seem like d support specialized overload?
D solution is called [template constraints](https://dlang.org/spec/template.html#template_constraints).