Skip to content

Commit d0f806a

Browse files
committed
spec: class: add __ctor, __dtor and __xdtor aliases
Signed-off-by: Luís Ferreira <[email protected]>
1 parent 46a5e83 commit d0f806a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/class.dd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ $(GNAME Constructor):
371371
}
372372
------
373373

374+
$(P The compiler may generate a $(D __ctor) alias that matches with
375+
constructors definitions.)
376+
374377
$(H3 $(LNAME2 delegating-constructors, Delegating Constructors))
375378

376379
$(P A constructor can call another constructor for the same class
@@ -729,6 +732,11 @@ $(GNAME Destructor):
729732
by the gc.
730733
)
731734

735+
$(P The compiler may generate $(D __dtor) and $(D __xdtor) alias that
736+
matches the class destructor definition and inclusive destructors,
737+
respectively.)
738+
739+
732740
$(H2 $(LNAME2 static-constructor, Static Constructors))
733741

734742
$(GRAMMAR

0 commit comments

Comments
 (0)