@@ -482,6 +482,8 @@ $(H3 $(LNAME2 class-instantiation, Class Instantiation))
482
482
A a = new A(3);
483
483
------
484
484
485
+ $(P A $(DDSUBLINK spec/attribute, scope-class-var, `scope` object) can be allocated on the stack.)
486
+
485
487
$(P The following steps happen:)
486
488
487
489
$(OL
@@ -700,8 +702,10 @@ $(GNAME Destructor):
700
702
$(D ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
701
703
)
702
704
703
- $(P The garbage collector calls the destructor function when the object
704
- is deleted. The syntax is:)
705
+ $(P The destructor function is called when the object
706
+ is deleted by the garbage collector, or when a
707
+ $(DDSUBLINK spec/attribute, scope-class-var, `scope` object) goes out of scope.
708
+ The syntax is:)
705
709
706
710
------
707
711
class Foo
@@ -1022,7 +1026,8 @@ $(GNAME Invariant):
1022
1026
1023
1027
1024
1028
$(H2 $(LNAME2 auto, Scope Classes))
1025
- $(B Note): Scope classes have been $(DDSUBLINK deprecate, scope as a type constraint, recommended for deprecation).
1029
+ $(NOTE Scope classes have been $(DDSUBLINK deprecate, scope as a type constraint, deprecated). See also
1030
+ $(DDSUBLINK spec/attribute, scope-class-var, `scope` objects).)
1026
1031
1027
1032
$(P A scope class is a class with the $(D scope) attribute, as in:)
1028
1033
0 commit comments