Skip to content

Commit a5b1ef6

Browse files
committed
Move Field Properties under Class Properties
1 parent 42fadd8 commit a5b1ef6

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

spec/class.dd

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ void foo(B b)
161161
without the subclasses needing to recompile or relink.
162162
)
163163

164-
$(H3 $(LNAME2 field_properties, Field Properties))
165-
166-
$(P The $(D .offsetof) property gives the offset in bytes of the field
167-
from the beginning of the class instantiation.
168-
`.offsetof` is not available for fields of `extern(Objective-C)` classes
169-
due to their fields having a dynamic offset.
170-
)
171164

172165
$(H2 $(LNAME2 class_properties, Class Properties))
173166

@@ -226,6 +219,16 @@ $(H3 $(LNAME2 hidden-fields, Accessing Hidden Fields))
226219
should not be used in user code.
227220
)
228221

222+
$(H3 $(LNAME2 field_properties, Field Properties))
223+
224+
$(P The $(D .offsetof) property gives the offset in bytes of the field
225+
from the beginning of the class instantiation.
226+
)
227+
$(NOTE `.offsetof` is not available for fields of `extern(Objective-C)` classes
228+
due to their fields having a dynamic offset.
229+
)
230+
231+
229232
$(H2 $(LNAME2 member-functions, Member Functions (a.k.a. Methods)))
230233

231234
$(P Non-static member functions have an extra hidden parameter

0 commit comments

Comments
 (0)