Is Objective-C 2.0 exception handling supported on platforms other than Mac OS X?

Objective-C 2.0 has several new enhancements:

  • garbage collection
  • quick listing: for..in
  • The properties
  • thread synchronization: @synchronized (self)
  • @ try / @ catch / @ finally / @ throw exception handling

I am interested in using Objective-C 2.0 as a language for programming portable code on several operating system platforms, while avoiding frameworks such as OpenStep or GNUStep.

However, although gcc 3.4.5 on Windows will parse the syntax for using the @ try / @ catch / @ finally / @ throw exception handler when compiling with -fobjc exceptions, it still generates this error:

error: storage size of '_stackExceptionData' isn't known

Is there support for Objective-C 2.0 features on operating systems other than Mac OS X v10.3 and later?

+3
5

Cocotron Objective-C 2.0 gcc 4.3.0:

Cocotron Johannes @try/@catch .

www.cocotron.org , Cocotron:

Cocotron - API Objective-C Apple Inc. Cocoa. AppKit, Foundation, Objective-C API CoreGraphics CoreFoundation

, - obj-c, Cocotron ...

+2

Apple /fork GCC, Objective-C 2.0. , Objective-C 2.0 GCC.

, , , , .

P.S. GNUstep ( Cocoa) - OpenStep, .

+1

, , , , , ( LLVM/Clang), Objective-C , ( Google), GNU .

+1

Étoilé, Objective-C ( @synchronized ) AFAIK:

http://www.nabble.com/ANN:-New-Objective-C-Runtime-td13648692.html

, Objective-C Objective-C 2.0. NeXT Panther.

0

@try/@catch/@finally/@throw Objective-C 2.0. MacOSX 10.3, Objective-C 2.0 10.5 (Leopard).

0

Source: https://habr.com/ru/post/1703256/


All Articles