One thing I'm having trouble with is null function parameters:
void fun(S s) {} void main() { fun(null); } How can S implement implicit conversion from null?I've already tried "alias this" and a constructor taking typeof(null).
Vladimir Panteleev via Digitalmars-d-learn Thu, 28 May 2015 04:21:07 -0700
One thing I'm having trouble with is null function parameters:
void fun(S s) {} void main() { fun(null); } How can S implement implicit conversion from null?I've already tried "alias this" and a constructor taking typeof(null).