On 07/15/2014 08:42 AM, Jacob Carlborg wrote: > On 14/07/14 18:16, H. S. Teoh via Digitalmars-d wrote: > >> Mine is here: >> >> http://wiki.dlang.org/User:Quickfur/DIP_scope > > From the DIP: > > "The 'scope' keyword has been around for years, yet it is barely > implemented and it's unclear just what it's supposed to mean" > > I don't know if it's worth clarify but "scope" currently has various > features. > > 1. Allocate classes on the stack: "scope bar = new Bar()" > 2. Forcing classes to be allocated on the stack: "scope class Bar {}" > 3. The scope-statement: "scope(exit) file.close()" > 4. Scope parameters. This is the part that is unclear what is means/is > supposed to mean in the current language >
Isn't both 1 and 2 deprecated?