www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Keyword scope as qualifier on destructors

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
What effect does `scope`-qualification have for destructors such 
as

     ~this()  trusted scope;

used here

https://github.com/dlang/dmd/pull/7284/files#diff-da63c10313833b6da044c7e5e3a85c03R67

?
Nov 06 2017
parent Jonathan M Davis <newsgroup.d jmdavisprog.com> writes:
On Monday, November 06, 2017 15:51:15 Nordlöw via Digitalmars-d-learn wrote:
 What effect does `scope`-qualification have for destructors such
 as

      ~this()  trusted scope;

 used here

 https://github.com/dlang/dmd/pull/7284/files#diff-da63c10313833b6da044c7e5
 e3a85c03R67

 ?
Without -dip1000? Nothing. With -dip1000, I'd guess that it has to do with pointers or references marked with scope, but I don't know. DIP 1000 might say. If not, then you'd probably have to ask Walter. scope ends up in all kinds of new, weird places with -dip1000. He covered some of it in his dconf talk this year, but I don't know how much things have changed since then. - Jonathan M Davis
Nov 06 2017