From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:dc05:: with SMTP id q5mr5497679itg.123.1559932163455; Fri, 07 Jun 2019 11:29:23 -0700 (PDT) X-Received: by 2002:aca:d746:: with SMTP id o67mr4636698oig.157.1559932163263; Fri, 07 Jun 2019 11:29:23 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g15no258406itd.0!news-out.google.com!l126ni269itl.0!nntp.google.com!s188no264250itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 7 Jun 2019 11:29:22 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 References: <60027108-2b92-417e-8083-eef19cc1e64a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: C++ diaries... From: Lucretia Injection-Date: Fri, 07 Jun 2019 18:29:23 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56544 Date: 2019-06-07T11:29:22-07:00 List-Id: On Friday, 7 June 2019 18:55:14 UTC+1, Olivier Henley wrote: > > You would be much more productive if you used non-clashing constant names. > > There is nothing clashing here: > > Whatever::SocketType::Raw > Whatever::ProtocolType::Raw > > Do the word 'Socket' and 'Protocol' looks like the same to you? The clash is because in C and C++ the identifiers in the enum are essentially global, if each enum was in a separate namespace, it would work. This is what happens when people "design" crap languages.