Click here to Skip to main content
15,867,488 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.

 
GeneralHow not to catch the exception Pin
feeza_n3n19-Jun-13 23:32
feeza_n3n19-Jun-13 23:32 
GeneralRe: How not to catch the exception Pin
Mohammed Hameed20-Jun-13 0:32
professionalMohammed Hameed20-Jun-13 0:32 
GeneralRe: How not to catch the exception Pin
jim lahey20-Jun-13 1:55
jim lahey20-Jun-13 1:55 
GeneralRe: How not to catch the exception Pin
jim lahey20-Jun-13 1:54
jim lahey20-Jun-13 1:54 
GeneralRe: How not to catch the exception Pin
Gaston Verelst20-Jun-13 3:09
Gaston Verelst20-Jun-13 3:09 
GeneralRe: How not to catch the exception Pin
Richard Deeming20-Jun-13 3:56
mveRichard Deeming20-Jun-13 3:56 
GeneralRe: How not to catch the exception Pin
Gaston Verelst20-Jun-13 4:30
Gaston Verelst20-Jun-13 4:30 
GeneralSomething is not as I expected Pin
Mohibur Rashid19-Jun-13 22:40
professionalMohibur Rashid19-Jun-13 22:40 
look at the code below:
C++
int main(){
    char *c=new char[10];
    delete [10,05]c;
    return 0;
}


compile fine in visual studio 2008
and error in gcc.
I wish I could believe there is an after life.

GeneralRe: Something is not as I expected Pin
AlphaDeltaTheta20-Jun-13 17:53
AlphaDeltaTheta20-Jun-13 17:53 
GeneralRe: Something is not as I expected Pin
Mohibur Rashid20-Jun-13 22:25
professionalMohibur Rashid20-Jun-13 22:25 
GeneralRe: Something is not as I expected Pin
AlphaDeltaTheta20-Jun-13 22:32
AlphaDeltaTheta20-Jun-13 22:32 
GeneralRe: Something is not as I expected Pin
Rob Grainger23-Jun-13 23:57
Rob Grainger23-Jun-13 23:57 
GeneralRe: Something is not as I expected Pin
DarkChuky CR12-Jul-13 13:11
DarkChuky CR12-Jul-13 13:11 
GeneralEverywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed19-Jun-13 20:28
professionalMohammed Hameed19-Jun-13 20:28 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
cjb11019-Jun-13 21:13
cjb11019-Jun-13 21:13 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed19-Jun-13 21:20
professionalMohammed Hameed19-Jun-13 21:20 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Rob Grainger24-Jun-13 0:02
Rob Grainger24-Jun-13 0:02 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Jarek Kruza19-Jun-13 21:56
Jarek Kruza19-Jun-13 21:56 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed19-Jun-13 22:08
professionalMohammed Hameed19-Jun-13 22:08 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Jarek Kruza20-Jun-13 1:30
Jarek Kruza20-Jun-13 1:30 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Rob Grainger24-Jun-13 0:04
Rob Grainger24-Jun-13 0:04 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed24-Jun-13 0:31
professionalMohammed Hameed24-Jun-13 0:31 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Chris Ross 224-Jun-13 2:32
Chris Ross 224-Jun-13 2:32 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Rob Grainger24-Jun-13 4:08
Rob Grainger24-Jun-13 4:08 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
V.19-Jun-13 23:25
professionalV.19-Jun-13 23:25 

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.