comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: C++ diaries...
Date: Fri, 7 Jun 2019 11:29:22 -0700 (PDT)
Date: 2019-06-07T11:29:22-07:00	[thread overview]
Message-ID: <b8517694-db63-4109-a01f-f9bafb6cba36@googlegroups.com> (raw)
In-Reply-To: <bc15333c-03b2-485c-be81-2c444abace1c@googlegroups.com>

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.


  parent reply	other threads:[~2019-06-07 18:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 16:32 C++ diaries Olivier Henley
2019-06-06 16:54 ` Olivier Henley
2019-06-07  7:32   ` Maciej Sobczak
2019-06-07 17:55     ` Olivier Henley
2019-06-07 18:22       ` Keith Thompson
2019-06-07 23:04         ` Olivier Henley
2019-06-07 23:09         ` Keith Thompson
2019-06-07 18:29       ` Lucretia [this message]
2019-06-07 23:27         ` Olivier Henley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox