Public feed #724470

Something

public text v1 · immutable
Raw Edit
·published 2007-10-03 16:53 UTC
rendered paste body
#include <objc/Object.h>

@interface Test : Object
- init;
@end

@implementation Test
-init
{
    @throw([Object new]);
}
@end

int main(void)
{
    Test *test;
    @try
    {
        test = [Test new];
    }
    @catch(Object *obj)
    {
        printf("exception thrown\n");
    }
}