This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ Deprecated `object.selector`
2
+
3
+ The public import of `selector` in the module `object` has been deprecated.
4
+ Please explicitly import `selector` instead using: `import core.attribute : selector;`
5
+
6
+ The following code has been deprecated:
7
+
8
+ ```
9
+ extern (Objective-C)
10
+ extern class NSObject
11
+ {
12
+ static NSObject alloc() @selector("alloc");
13
+ }
14
+ ```
15
+
16
+ Replace with:
17
+
18
+ ```
19
+ import core.attribute : selector;
20
+
21
+ extern (Objective-C)
22
+ extern class NSObject
23
+ {
24
+ static NSObject alloc() @selector("alloc");
25
+ }
26
+ ```
Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ alias string = immutable(char)[];
36
36
alias wstring = immutable (wchar )[];
37
37
alias dstring = immutable (dchar )[];
38
38
39
- version (D_ObjectiveC ) public import core.attribute : selector;
39
+ version (D_ObjectiveC )
40
+ {
41
+ deprecated (" explicitly import `selector` instead using: `import core.attribute : selector;`" )
42
+ public import core.attribute : selector;
43
+ }
40
44
version (Posix ) public import core.attribute : gnuAbiTag;
41
45
42
46
// Some ABIs use a complex varargs implementation requiring TypeInfo.argTypes().
You can’t perform that action at this time.
0 commit comments