ObjFW  Changes To Differences to Foundation

Changes to "Differences to Foundation" between 2024-08-17 10:02:54 and 2024-08-18 21:17:25

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







		@throw e;
	}

	return self;
}
```

With ARC, `-fobjc-arc-exceptions` is required, which makes the compiler handle releasing `self` on an exception automatically. This means that the same `init` methid with ARC shoud look like this:
With ARC, `-fobjc-arc-exceptions` is required, which makes the compiler handle releasing `self` on an exception automatically. This means that the same `init` method with ARC should look like this:

```objc
- (instancetype)init
{
	self = [super init];

	_myIVar = somethingThatCanFail();