File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -167,26 +167,8 @@ $(H3 $(LNAME2 field_properties, Field Properties))
167
167
from the beginning of the class instantiation.
168
168
`.offsetof` is not available for fields of `extern(Objective-C)` classes
169
169
due to their fields having a dynamic offset.
170
- $(D .offsetof) can only be applied to
171
- expressions which produce the type of
172
- the field itself, not the class type:
173
170
)
174
171
175
- ------
176
- class Foo
177
- {
178
- int x;
179
- }
180
- ...
181
- void test(Foo foo)
182
- {
183
- size_t o;
184
-
185
- o = Foo.x.offsetof; // error, Foo.x needs a 'this' reference
186
- o = foo.x.offsetof; // ok
187
- }
188
- ------
189
-
190
172
$(H2 $(LNAME2 class_properties, Class Properties))
191
173
192
174
$(P The $(D .tupleof) property is an
You can’t perform that action at this time.
0 commit comments