Why can I call a function with mismatched parameter type?
rikki cattermole
rikki at cattermole.co.nz
Fri Dec 11 11:32:09 UTC 2020
string is not a built in type. It is an alias defined by druntime.
https://github.com/dlang/druntime/blob/master/src/object.d#L35
int on the other hand is defined by the compiler. It understands it.
Further, when the parameter name is not provided it will infer based
upon what is passed in. In effect it is templated.
More information about the Digitalmars-d-learn
mailing list