Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Blank Throw Statement

Name: Anonymous 2006-01-15 12:26

Hi. This may seem like a newbie question, but its not.
See, I have NO IDEA how to catch a BLANK throw stement.

(e.g.)

try{   throw;   }
catch(?)// No idea what to put to catch the blank throw statement above
{}

Let's see if anyone can figure this out, eh?
Chears!

Name: Anonymous 2006-01-15 14:54

try {
    try {
        try {
            throw 1;
        }
        catch(int e) {
            printf("lol, caught %d\n", e);
            throw;
        }
    }
    catch(int e) {
        printf("lol, caught %d again\n", e);
        throw;
    }
}
catch(...) {
    printf("lol, caught some shit\n");
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List