Can D "prevents segfaults, and guarantees thread safety"?
Chris Wright via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Feb 22 20:41:21 PST 2016
On Tue, 23 Feb 2016 04:28:14 +0000, mahdi wrote:
> A selling point of Rust language is that it "prevents segfaults,
> and guarantees thread safety". Is there a library in D language which
> provides same features?
D is more for providing safe defaults than for entirely preventing
problems.
The @safe annotation is intended to provide more guarantees. It allows
you to dereference null, but otherwise it prevents memory errors (aside
from some outstanding issues around casting to and from void[]).
More information about the Digitalmars-d-learn
mailing list