Something like ADL from C++?

Manu turkeyman at gmail.com
Thu Dec 5 02:40:09 UTC 2024


On Wed, 4 Dec 2024 at 17:31, Walter Bright via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> Back before I ended work on C++, a number of C++ Illuminati told me
> privately
> that ADL was a mistake. Things may have changed since then, and I don't
> know
> about that.
>

I've used it effectively for decades and never had any problems.
I'm not advocating ADL necessarily, I can see the complexity; but we need
an effective response though. D has made the patterns it supports somewhat
more attractive than they are in C++ (mainly thanks to UFCS), yet the local
imports shadowing overload sets issue is confusing and unintuitive, and
makes the situation fail completely.

For my money, SFINAE is the most egregious bit of the C++ spec. (though
we're not doing a whole lot better!)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20241205/5664e30d/attachment.htm>


More information about the Digitalmars-d mailing list