Skip to content

Commit c8d5cdf

Browse files
authored
Scope class is deprecated
Scope class is deprecated, no?
1 parent cbb4877 commit c8d5cdf

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spec/attribute.dd

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,12 +635,9 @@ auto i = 6.8; // declare i as a double
635635
$(H2 $(LNAME2 scope, $(D scope) Attribute))
636636

637637
$(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
644641
reference to it goes out of scope. The destructor is called even
645642
if the scope is exited via a thrown exception, thus $(D scope)
646643
is used to guarantee cleanup.

0 commit comments

Comments
 (0)