Something like ADL from C++?
Manu
turkeyman at gmail.com
Thu Dec 5 02:31:50 UTC 2024
On Wed, 4 Dec 2024 at 08:16, Walter Bright via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
> Koenig lookup? I ran away, far away, from that, after implementing it for
> C++.
>
> It's a nightmare.
>
So what do you suggest?
UFCS makes this pattern more attractive than ever, but our lookup rules
inhibit any practical application.
The problem is essentially that a more-local import or singular declaration
shadows an entire overload set from a less-local scope, rather than merging
with it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20241205/ab9534f7/attachment.htm>
More information about the Digitalmars-d
mailing list