overloadable implicit cast
Jesse Phillips
jessekphillips+D at gmail.com
Tue Oct 26 14:39:37 PDT 2010
Adam Cigánek Wrote:
> Hello,
>
> Is it possible to make a type implicitly cast to another type?
> Something like overloading opCast, but make it so it's used
> implicitly. Or is there implicit casting in D at all?
OpImplicitCast was planed to be added, but it has been superseded by alias this. Due to many bugs related to alias this, it is mostly unusable.
More information about the Digitalmars-d-learn
mailing list