[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: does GNUstep support exception as well as apple implementation?
From: |
Nicola Pero |
Subject: |
RE: does GNUstep support exception as well as apple implementation? |
Date: |
Fri, 4 Jun 2010 16:28:29 +0200 (CEST) |
Depending on how your Objective-C environment is setup on Linux, it is possible
that
@try/@catch/@throw may not work or not be configured.
In that case, you should use NS_DURING/NS_HANDLER/NS_ENDHANDLER. The syntax
and internals
are not slick but they work and have been in use for ages. ;-)
Thanks
-----Original Message-----
From: "Shuduo Sang" <sangshuduo@gmail.com>
Sent: Friday, 4 June, 2010 13:18
To: discuss-gnustep@gnu.org
Subject: does GNUstep support exception as well as apple implementation?
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep
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
Re: does GNUstep support exception as well as apple implementation?, Lars Sonchocky-Helldorf, 2010/06/04
RE: does GNUstep support exception as well as apple implementation?,
Nicola Pero <=