File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ $(H2 $(LNAME2 field_properties, Field Properties))
146
146
147
147
$(P The $(D .offsetof) property gives the offset in bytes of the field
148
148
from the beginning of the class instantiation.
149
+ `.offsetof` is not available for fields of `extern(Objective-C)` classes
150
+ due to their fields having a dynamic offset.
149
151
$(D .offsetof) can only be applied to
150
152
expressions which produce the type of
151
153
the field itself, not the class type:
@@ -172,6 +174,8 @@ $(H2 $(LNAME2 class_properties, Class Properties))
172
174
$(DDSUBLINK spec/template, variadic-templates, expression sequence)
173
175
of all the fields in the class, excluding the hidden fields and
174
176
the fields in the base class.
177
+ `.tupleof` is not available for `extern(Objective-C)` classes due to
178
+ their fields having a dynamic offset.
175
179
)
176
180
---
177
181
class Foo { int x; long y; }
You can’t perform that action at this time.
0 commit comments