fearless v0.0.1 - shared made easy (and @safe)

thedeemon dlang at thedeemon.com
Wed Sep 19 10:58:04 UTC 2018


On Tuesday, 18 September 2018 at 17:20:26 UTC, Atila Neves wrote:

> I was envious of std::sync::Mutex from Rust and thought: can I 
> use DIP1000 to make this work in D and be @safe? Turns out, yes.

Nice! I spent a few minutes playing with the example and trying 
to break it, make the pointer escape, but I couldn't, the 
compiler caught me every time. This DIP1000 thing seems to be 
working!


More information about the Digitalmars-d-announce mailing list