File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -635,12 +635,9 @@ auto i = 6.8; // declare i as a double
635
635
$(H2 $(LNAME2 scope, $(D scope) Attribute))
636
636
637
637
$(P
638
- The $(D scope) attribute is used for local variables and for class
639
- declarations. For class declarations, the $(D scope) attribute creates
640
- a $(I scope) class.
641
- For local declarations, $(D scope) implements the RAII (Resource
642
- Acquisition Is Initialization) protocol. This means that the
643
- destructor for an object is automatically called when the
638
+ The $(D scope) attribute is used for local variables and implements the
639
+ RAII (Resource Acquisition Is Initialization) protocol.
640
+ This means that the destructor for an object is automatically called when the
644
641
reference to it goes out of scope. The destructor is called even
645
642
if the scope is exited via a thrown exception, thus $(D scope)
646
643
is used to guarantee cleanup.
You can’t perform that action at this time.
0 commit comments