Click here to Skip to main content
15,887,027 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: A backslash in C++ Pin
Duncan Edwards Jones14-Jan-14 21:02
professionalDuncan Edwards Jones14-Jan-14 21:02 
GeneralRe: A backslash in C++ Pin
Bernhard Hiller14-Jan-14 21:04
Bernhard Hiller14-Jan-14 21:04 
GeneralRe: A backslash in C++ Pin
Tsuda Kageyu14-Jan-14 21:13
Tsuda Kageyu14-Jan-14 21:13 
GeneralRe: A backslash in C++ Pin
Bernhard Hiller14-Jan-14 21:44
Bernhard Hiller14-Jan-14 21:44 
GeneralRe: A backslash in C++ Pin
Nicholas Marty15-Jan-14 0:43
professionalNicholas Marty15-Jan-14 0:43 
GeneralRe: A backslash in C++ Pin
Rob Grainger16-Jan-14 23:54
Rob Grainger16-Jan-14 23:54 
GeneralRe: A backslash in C++ Pin
Lutosław17-Jan-14 9:43
Lutosław17-Jan-14 9:43 
GeneralRe: A backslash in C++ Pin
Argonia14-Jan-14 21:25
professionalArgonia14-Jan-14 21:25 
In this case the
C++
if (flag)
would be colored in green showing that its part of the comment and it wont be read by the compiler. This should be enough of hint why SomeWork() is executed no matter the flag's value Smile | :)
Microsoft ... the only place where VARIANT_TRUE != true

GeneralRe: A backslash in C++ Pin
Pete O'Hanlon14-Jan-14 21:40
mvePete O'Hanlon14-Jan-14 21:40 
GeneralRe: A backslash in C++ Pin
Argonia14-Jan-14 21:50
professionalArgonia14-Jan-14 21:50 
GeneralRe: A backslash in C++ Pin
Pete O'Hanlon14-Jan-14 22:28
mvePete O'Hanlon14-Jan-14 22:28 
GeneralRe: A backslash in C++ Pin
Sentenryu14-Jan-14 22:38
Sentenryu14-Jan-14 22:38 
GeneralRe: A backslash in C++ Pin
Pete O'Hanlon14-Jan-14 22:45
mvePete O'Hanlon14-Jan-14 22:45 
GeneralRe: A backslash in C++ Pin
Argonia14-Jan-14 22:49
professionalArgonia14-Jan-14 22:49 
GeneralRe: A backslash in C++ Pin
Pete O'Hanlon14-Jan-14 22:52
mvePete O'Hanlon14-Jan-14 22:52 
GeneralRe: A backslash in C++ Pin
Sentenryu14-Jan-14 23:08
Sentenryu14-Jan-14 23:08 
GeneralRe: A backslash in C++ Pin
Pete O'Hanlon14-Jan-14 23:11
mvePete O'Hanlon14-Jan-14 23:11 
GeneralRe: A backslash in C++ Pin
Sentenryu14-Jan-14 23:15
Sentenryu14-Jan-14 23:15 
GeneralRe: A backslash in C++ Pin
Pete O'Hanlon14-Jan-14 23:24
mvePete O'Hanlon14-Jan-14 23:24 
GeneralRe: A backslash in C++ Pin
Nagy Vilmos14-Jan-14 23:57
professionalNagy Vilmos14-Jan-14 23:57 
GeneralRe: A backslash in C++ Pin
Sentenryu15-Jan-14 0:06
Sentenryu15-Jan-14 0:06 
GeneralRe: A backslash in C++ Pin
Chris Quinn14-Jan-14 23:55
Chris Quinn14-Jan-14 23:55 
GeneralRe: A backslash in C++ Pin
Brisingr Aerowing15-Jan-14 14:34
professionalBrisingr Aerowing15-Jan-14 14:34 
GeneralRe: A backslash in C++ Pin
loctrice23-Jan-14 5:15
loctrice23-Jan-14 5:15 
GeneralRe: A backslash in C++ Pin
Brisingr Aerowing10-Feb-14 15:29
professionalBrisingr Aerowing10-Feb-14 15:29 

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.