Wednesday, February 23, 2005

bleh

Nothing good to post about today? weak.

Try this in C++:

try{
MyClass* mine = new MyClass();
delete mine;
mine->someFunction();
}
catch(exception e) {
// I should catch an exception, right?
}


Actually, no. You do get a null reference error though. That's some handy error-handling. Easy to find bug, too.

Pain. In. The. Ass.

0 comments: