Click here to Skip to main content
15,887,214 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: Language + ? = BFF Pin
Single Step Debugger2-Dec-22 10:20
Single Step Debugger2-Dec-22 10:20 
GeneralRe: Language + ? = BFF Pin
0x01AA2-Dec-22 11:05
mve0x01AA2-Dec-22 11:05 
GeneralRe: Language + ? = BFF Pin
Single Step Debugger5-Dec-22 2:56
Single Step Debugger5-Dec-22 2:56 
GeneralRe: Language + ? = BFF Pin
PIEBALDconsult2-Dec-22 11:21
mvePIEBALDconsult2-Dec-22 11:21 
GeneralRe: Language + ? = BFF Pin
0x01AA4-Dec-22 9:30
mve0x01AA4-Dec-22 9:30 
GeneralRe: Language + ? = BFF Pin
PIEBALDconsult4-Dec-22 10:55
mvePIEBALDconsult4-Dec-22 10:55 
GeneralRe: Language + ? = BFF Pin
0x01AA4-Dec-22 12:03
mve0x01AA4-Dec-22 12:03 
GeneralRe: Language + ? = BFF Pin
PIEBALDconsult4-Dec-22 12:54
mvePIEBALDconsult4-Dec-22 12:54 
Ah, I see, but I disagree. I prefer to be able to specify the values. It's kinda important for "flags" type enumerated values.
Maybe there should be an Attribute which enables things -- yes, I know about the FlagsAttribute, but it really only affects how strings are formed or parsed, it has nothing to do with what values are defined or assigned.

C#
public enum Option
{
  None  = 0 
,
  UTF8  = 1
,
  ASCII = 2 | UTF8
,
  All   = ASCII
}



Maybe a "bare" enum would enforce a strict value assignment and the ability to specify the values would require the developer to activate other features.
GeneralRe: Language + ? = BFF Pin
megaadam2-Dec-22 10:45
professionalmegaadam2-Dec-22 10:45 
GeneralRe: Language + ? = BFF Pin
Amarnath S2-Dec-22 22:32
professionalAmarnath S2-Dec-22 22:32 
GeneralRe: Language + ? = BFF Pin
PIEBALDconsult3-Dec-22 12:49
mvePIEBALDconsult3-Dec-22 12:49 
GeneralRe: Language + ? = BFF Pin
honey the codewitch2-Dec-22 23:53
mvahoney the codewitch2-Dec-22 23:53 
GeneralRe: Language + ? = BFF Pin
Single Step Debugger5-Dec-22 3:02
Single Step Debugger5-Dec-22 3:02 
GeneralRe: Language + ? = BFF Pin
honey the codewitch5-Dec-22 5:58
mvahoney the codewitch5-Dec-22 5:58 
GeneralRe: Language + ? = BFF Pin
kmoorevs3-Dec-22 12:16
kmoorevs3-Dec-22 12:16 
GeneralSo there I was... Pin
PIEBALDconsult2-Dec-22 2:28
mvePIEBALDconsult2-Dec-22 2:28 
GeneralRe: So there I was... Pin
Maximilien2-Dec-22 2:51
Maximilien2-Dec-22 2:51 
GeneralRe: So there I was... Pin
Slacker0072-Dec-22 2:52
professionalSlacker0072-Dec-22 2:52 
GeneralRe: So there I was... Pin
PIEBALDconsult2-Dec-22 4:01
mvePIEBALDconsult2-Dec-22 4:01 
GeneralRe: So there I was... Pin
jmaida2-Dec-22 10:18
jmaida2-Dec-22 10:18 
GeneralRe: So there I was... Pin
dandy722-Dec-22 3:54
dandy722-Dec-22 3:54 
GeneralRe: So there I was... Pin
Slacker0072-Dec-22 4:08
professionalSlacker0072-Dec-22 4:08 
GeneralRe: So there I was... Pin
JudyL_MD2-Dec-22 4:39
JudyL_MD2-Dec-22 4:39 
GeneralRe: So there I was... Pin
charlieg2-Dec-22 7:07
charlieg2-Dec-22 7:07 
GeneralRe: So there I was... Pin
dandy724-Dec-22 3:36
dandy724-Dec-22 3:36 

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.