std.typecons.Ref(T).opImplicitCastTo()
Jonathan M Davis
jmdavisProg at gmx.com
Fri Mar 30 10:28:18 PDT 2012
On Friday, March 30, 2012 16:27:44 simendsjo wrote:
> Is opImplicitCastTo a planned feature?
> It's only used in this type as I can see, and it doesn't add implicit
> casting.
It's been discussed, but I don't think that it's ever been agreed upon. In
theory, alias this is meant to deal with implicit casts. I don't know whay
anything in Phobos would have such a function. And I don't know what the point
of std.typecons.Ref really is. It's undocumented (and clearly is _intended_ to
be undocumented given what the comment is started with). I suspect that it's
an old idea that just hasn't been cleaned out. If you'll notice, it also has
opDot, which is being removed from the language.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list