Skip to content

Commit e326f26

Browse files
committed
move getVirtualIndex to functions
1 parent bf9250d commit e326f26

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/traits.dd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ static assert(!__traits(isDisabled, Bar));
364364
---
365365
)
366366

367+
$(H3 $(GNAME getVirtualIndex))
368+
369+
$(P Takes a single argument which must evaluate to a function.
370+
The result is a $(CODE ptrdiff_t) containing the index
371+
of that function within the vtable of the parent type.
372+
If the function passed in is final and does not override
373+
a virtual function, $(D -1) is returned instead.
374+
)
375+
367376
$(H3 $(GNAME isVirtualFunction))
368377

369378
$(P The same as $(GLINK isVirtualMethod), except
@@ -1475,15 +1484,6 @@ $(H3 $(GNAME classInstanceSize))
14751484
polymorphic type.
14761485
)
14771486

1478-
$(H3 $(GNAME getVirtualIndex))
1479-
1480-
$(P Takes a single argument which must evaluate to a function.
1481-
The result is a $(CODE ptrdiff_t) containing the index
1482-
of that function within the vtable of the parent type.
1483-
If the function passed in is final and does not override
1484-
a virtual function, $(D -1) is returned instead.
1485-
)
1486-
14871487
$(H3 $(GNAME allMembers))
14881488

14891489
$(P Takes a single argument, which must evaluate to either

0 commit comments

Comments
 (0)