Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0020-Mar-13 15:11 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberPIEBALDconsult20-Mar-13 15:17 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberMatthew Faithfull20-Mar-13 15:10 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0020-Mar-13 15:13 
But in C++ (if I remember correctly), all integer types are implicitly convertible to enum. Then 0 assignment becomes expected behavior. In a language that explicitly prevents this, having one magic value that works does not make sense to me.
 
Edit: Also, it doesn't work for other classes or structs either, so why should enum be special?
GeneralRe: Does this language feature seem strange to anyone else? PinmemberMatthew Faithfull20-Mar-13 15:29 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0020-Mar-13 15:39 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberMatthew Faithfull20-Mar-13 16:10 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberMike Winiberg21-Mar-13 23:14 
GeneralRe: Does this language feature seem strange to anyone else? PinprotectorAspDotNetDev20-Mar-13 14:56 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0020-Mar-13 15:06 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 25 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid