RFC: moving forward with @nogc Phobos

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 2 11:52:17 PDT 2014


On Thursday, 2 October 2014 at 13:29:58 UTC, Ola Fosheim Grøstad
wrote:
> On Thursday, 2 October 2014 at 11:41:14 UTC, Jacob Carlborg 
> wrote:
>> I haven't really thought how it could be implemented but I was 
>> hoping that the caller could magically decide the allocation 
>> strategy instead of the callee. It looks like Rust is doing 
>> something like that but I haven't looked at it in detail.
>
> I haven't looked at Rust in detail, but doesn't the Rust 
> compiler take full control over memory management? I think that 
> is a good idea, but it is at odds with D's general direction.

Rust makes use of the type system and the borrow checker to
validate how the pointers are being used.

The usual errors when dealing with pointers are compile time
errors in Rust.

--
Paulo


More information about the Digitalmars-d mailing list