discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

does GNUstep support exception as well as apple implementation?


From: Shuduo Sang
Subject: does GNUstep support exception as well as apple implementation?
Date: Fri, 4 Jun 2010 19:18:26 +0800

Hi folks,

I am studying objc these days.I decide to use GNUstep as development env since I am familiar with Linux. I use following link as my tutorial.
http://www.otierney.net/objective-c.html.en#exceptions
But I see the example code execution result is different to that article.

The expected result should be:
Cup level is: 10
Cup level is: 20
Cup level is: 30
Cup level is: 40
CupWarningException: Cup level is: 50
CupWarningException: Cup level is: 60
CupWarningException: Cup level is: 70
CupWarningException: Cup level is: 80
CupWarningException: Cup level is: 90
CupWarningException: Cup level is: 100
CupOverflowException: Cup level is: 110
CupUnderflowException: The level is below 0
But my result which compiled with GNUstep is following:

Cup level is: 10
Cup level is: 20
Cup level is: 30
Cup level is: 40
Aborted

Does it mean the exception implementation of GNUstep is not complete as well as Apple runtime?

Thanks,
Shuduo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]