D vs Rust

xenon325 via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 31 23:13:32 PST 2016


On Sunday, 31 January 2016 at 16:18:21 UTC, bearophile wrote:
> And currently it's dead-easy to write unsafe code even in @safe 
> D functions:
>
> int[] foo() pure @safe {
>     int[2] a = [10, 20];
>     auto b = a[];
>     return b;
> }
> void main() {}

Doesn't http://wiki.dlang.org/DIP25 fix this ?


More information about the Digitalmars-d mailing list