What is Tdummy doing in (may|does)PointTo?
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 14 11:50:34 PDT 2016
On Thursday, 14 April 2016 at 18:47:41 UTC, Andrei Alexandrescu
wrote:
> https://dlang.org/library/std/exception/may_point_to.html
> https://dlang.org/library/std/exception/does_point_to.html
>
> We have an unfortunate pattern in Phobos: things that start out
> as simple ideas with nice implementations (in this case
> pointsTo) slowly change into complicated artifacts with
> undocumented rationale. We really should rein in documentation,
> not only external but also internal. In this case I cannot for
> the life of me figure what Tdummy does, and the only appearance
> of the name is in the respective definitions.
Generally, if you don't understand why something is there, you
could...
1. git blame
2. Delete it and see which tests fail :)
In this case it appears to be used to disambiguate between the
overloaded template.
More information about the Digitalmars-d
mailing list