DIP1000: Scoped Pointers

Timon Gehr via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Aug 12 13:08:37 PDT 2016


On 12.08.2016 21:39, Walter Bright wrote:
> On 8/12/2016 5:33 AM, Nordlöw wrote:
>> If this is successfully implemented, what will D not be able to do,
>> that Rust
>> can/will?
>
> Have ownership semantics for pointers in more complex data structures.
> In D you'll have to do such with ref counted objects.
>
> On the other hand, D code can reference mutable globals in @safe code,
> whereas Rust cannot.
>
> Assuming, of course, I understood the Rust semantics correctly.

AFAIU Rust has safe static TLS.


More information about the Digitalmars-d-announce mailing list