[OT] Modules dropped out of C++17

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 9 03:17:28 PDT 2015


On Tuesday, 9 June 2015 at 08:40:21 UTC, Shachar Shemesh wrote:
> But that's just it. With UFCS, the function no longer needs to 
> be in the same module as the class/struct to which it is 
> referring. In fact, that is the whole point.

What you complain about again? C never had modules or whatever 
symbol scoping anyway.

> In the relevant C++ proposal, at least you can be sure that 
> there is at most one such function. Otherwise, the linker will 
> complain (namespaces notwithstanding). In D, you can't even say 
> that. There may be three (or three thousand) such functions, 
> each in its own module, and until/unless you try to import two 
> such modules, you won't even notice it.

This is how all free functions worked since the beginning (even 
without UFCS). It's not a feature of UFCS.


More information about the Digitalmars-d mailing list