Bill Baxter wrote:
It's pretty common to see bits of a namespace get spread across many files.
There's no way to do that in D.  But I wouldn't go so far as to say
it's a necessity.

Yeah, Andrei and I talked about that and if it was a worthwhile capability. We decided it was a misfeature in that it would subvert encapsulation.

For example, if any source file can add functions to a namespace, how can function overloading be reliable?

C++ namespaces are often considered a failure, and this is one of the reasons.

Reply via email to