diff --git a/glossary.dd b/glossary.dd index 15f0835903..1e7dd10660 100644 --- a/glossary.dd +++ b/glossary.dd @@ -258,6 +258,11 @@ void test() syntax) refers to the ability to call a function as if it were a method of its first argument. For example `funct(arg)` may be written as `arg.funct()`.) + + $(DT $(LNAME2 inclusive_destructor, inclusive-destructor, Inclusive + Destructor)) + $(DD An inclusive destructor is a destructor that includes destruction + of the object itself and its fields, if reaching its lifetime.) ) ) diff --git a/spec/class.dd b/spec/class.dd index 65cc11ecdb..61c48c2ab2 100644 --- a/spec/class.dd +++ b/spec/class.dd @@ -371,6 +371,9 @@ $(GNAME Constructor): } ------ + $(P The compiler generate a $(D __ctor) alias that matches with + constructors definitions.) + $(H3 $(LNAME2 delegating-constructors, Delegating Constructors)) $(P A constructor can call another constructor for the same class @@ -729,6 +732,11 @@ $(GNAME Destructor): by the gc. ) + $(P The compiler generates $(D __dtor) and $(D __xdtor) aliases that + matches the class destructor definition and inclusive destructors, + respectively.) + + $(H2 $(LNAME2 static-constructor, Static Constructors)) $(GRAMMAR