Phobos is now compiled with -preview=dip1000

Walter Bright newshound2 at digitalmars.com
Fri May 17 20:04:42 UTC 2019


On 5/17/2019 11:45 AM, Jonathan M Davis wrote:
> It is my understanding that DIP 1000 really doesn't track lifetimes at all.
> It just ensures that no references to the data escape. So, you can't do
> something like take a scope variable and put any references to it or what it
> refers to in a container. Honestly, from what I've seen, what you can
> ultimately do with scope is pretty limited. It definitely helps in simple
> cases, but it quickly gets to the point that it's unable to be used in more
> complex cases - at least not without casting and needing to use @trusted.
> So, it's an improvement for some kinds of code, but I suspect that in
> general, it's just going to be more annoying than it's worth. Time will tell
> though.

Dip1000 is key to enable containers to control access to pointers to their 
innards that they expose.


More information about the Digitalmars-d-announce mailing list