Documentation: is it intentional that template constraints are displayed after the signature?
Tobias Pankrath
tobias at pankrath.net
Thu Oct 31 13:34:35 UTC 2019
e.g. here: https://dlang.org/library/object/destroy.html
I was confused at first by the trailing
if (!is(T == struct) && !is(T == interface) && !is(T == class)
&& !__traits(isStaticArray, T));
after I somehow managed to completely parse that page without
recognizing all other constraints.
More information about the Digitalmars-d-learn
mailing list