About Go, D module naming

"Jérôme M. Berger" jeberger at free.fr
Sun Dec 23 04:03:56 PST 2012


Walter Bright wrote:
> On 12/22/2012 12:46 AM, Jonathan M Davis wrote:
>> Pretty much every time that this issue comes up, people are surprised
>> by the
>> fact that private symbols aren't hidden and pretty much no one wants
>> them to
>> be in overload sets.
> 
> This has been discussed before, and the same people wanted private
> functions removed from overload sets in classes.
> 
> So why does this never come up in C++ if it's such a problem? Like I
> said, I've never seen this come up on peoples' lists of what they don't
> like about C++, and it isn't because they're shy about complaining about
> C++ :-)

	Because C++ *can* hide symbols from other modules with the
anonymous namespace. D has no equivalent.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121223/ed248dab/attachment.pgp>


More information about the Digitalmars-d mailing list