Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc 3.3 try - catch -finally



Drat, when I read your message subject, I thought you were going to be
talking about how try and catch "finally work" in gcc 3.3 C++. ;) But
alas, I tried myself and it still seems to not work. Perhaps I'm just not
doing this properly, but shouldn't something like this for example, if
gcc's exception handling were working correctly, result in the message
being printed to console:

typedef void * (*generic_function)();
try {
generic_function fptr = (generic_function) rand();
fptr();
}
catch (...) {
printf("whoa hey, we have an exception!\n");
}

For me the catch (...) part is never hit...

Marc
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.