Click here to Skip to main content
15,444,626 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Please, I need encouragement :( Pin
0x01AA5-Aug-22 8:25
professional0x01AA5-Aug-22 8:25 
GeneralRe: Please, I need encouragement :( Pin
obermd5-Aug-22 8:31
Memberobermd5-Aug-22 8:31 
GeneralRe: Please, I need encouragement :( Pin
0x01AA5-Aug-22 8:40
professional0x01AA5-Aug-22 8:40 
GeneralRe: Please, I need encouragement :( Pin
OriginalGriff5-Aug-22 8:38
mveOriginalGriff5-Aug-22 8:38 
GeneralRe: Please, I need encouragement :( Pin
PIEBALDconsult5-Aug-22 9:04
professionalPIEBALDconsult5-Aug-22 9:04 
GeneralRe: Please, I need encouragement :( Pin
OriginalGriff5-Aug-22 9:07
mveOriginalGriff5-Aug-22 9:07 
GeneralRe: Please, I need encouragement :( Pin
PIEBALDconsult5-Aug-22 9:35
professionalPIEBALDconsult5-Aug-22 9:35 
GeneralRe: Please, I need encouragement :( Pin
trønderen5-Aug-22 9:44
Membertrønderen5-Aug-22 9:44 
(regarding inheriting enums)
OriginalGriff wrote:
I've never wanted to, but I can understand why you can't.
I can't understand why C# didn't get a proper first class enum data type. After all, Pascal has had it since 1970. It was even into the design of Algol 60 ('60' refers to the year 1960), but the deadline for publication of the standard was considered absolute, and there were a few details still to be worked out - so it was dropped from the published standard. Nic Wirth didn't invent the enum concept, he knew it from the Algol discussions ten years earlier, 62 years ago (although C# first appeared "only" 40 years after Algol 60, 30 years after Pascal).

Today's C# enum is very close to using #define to name integer literals in K&R C. It has its own keyword, and a syntax for simpler naming of consecutive integer values, but that's about it. I think of enums as integer literal names - that's what they are in C#. Not a type, as in Pascal.
GeneralRe: Please, I need encouragement :( Pin
Greg Utas5-Aug-22 9:53
mveGreg Utas5-Aug-22 9:53 
GeneralRe: Please, I need encouragement :( Pin
OriginalGriff5-Aug-22 10:00
mveOriginalGriff5-Aug-22 10:00 
GeneralRe: Please, I need encouragement :( Pin
PIEBALDconsult5-Aug-22 10:19
professionalPIEBALDconsult5-Aug-22 10:19 
GeneralRe: Please, I need encouragement :( Pin
David O'Neil5-Aug-22 16:25
professionalDavid O'Neil5-Aug-22 16:25 
GeneralRe: Please, I need encouragement :( Pin
OriginalGriff5-Aug-22 18:53
mveOriginalGriff5-Aug-22 18:53 
GeneralRe: Please, I need encouragement :( Pin
David O'Neil5-Aug-22 19:12
professionalDavid O'Neil5-Aug-22 19:12 
GeneralRe: Please, I need encouragement :( Pin
OriginalGriff5-Aug-22 19:21
mveOriginalGriff5-Aug-22 19:21 
GeneralRe: Please, I need encouragement :( Pin
David O'Neil5-Aug-22 19:27
professionalDavid O'Neil5-Aug-22 19:27 
GeneralRe: Please, I need encouragement :( Pin
PIEBALDconsult5-Aug-22 10:35
professionalPIEBALDconsult5-Aug-22 10:35 
GeneralRe: Please, I need encouragement :( Pin
trønderen5-Aug-22 11:16
Membertrønderen5-Aug-22 11:16 
GeneralRe: Please, I need encouragement :( Pin
PIEBALDconsult5-Aug-22 11:30
professionalPIEBALDconsult5-Aug-22 11:30 
GeneralRe: Please, I need encouragement :( Pin
trønderen5-Aug-22 12:52
Membertrønderen5-Aug-22 12:52 
GeneralRe: Please, I need encouragement :( Pin
PIEBALDconsult5-Aug-22 13:09
professionalPIEBALDconsult5-Aug-22 13:09 
GeneralRe: Please, I need encouragement :( Pin
theoldfool5-Aug-22 11:39
professionaltheoldfool5-Aug-22 11:39 
GeneralRe: Please, I need encouragement :( Pin
#realJSOP6-Aug-22 0:03
mva#realJSOP6-Aug-22 0:03 
GeneralRe: Please, I need encouragement :( Pin
0x01AA6-Aug-22 1:43
professional0x01AA6-Aug-22 1:43 
GeneralRe: Please, I need encouragement :( Pin
#realJSOP7-Aug-22 2:02
mva#realJSOP7-Aug-22 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

What topics would you like to learn more about?
Contributed by Marc Clifton.
  Results   6,512 votes