Why are compile-time constraints checked with an (inout int = 0) lambda in Phobos?

Atila Neves atila.neves at gmail.com
Wed Mar 26 22:27:49 PDT 2014


Why the (inout int = 0) instead of an empty parameter list? I
checkout how isInputRange was implemented and I copied the idiom,
but I'd like to know why it's like that instead of cargo culting.
Thanks,

Atila


More information about the Digitalmars-d-learn mailing list