DIP1000: Scoped Pointers

Walter Bright via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Aug 12 13:25:34 PDT 2016


On 8/12/2016 1:08 PM, Timon Gehr wrote:
> 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.

Perhaps. Rust changes regularly. Some of the top hits in google are out of date.


More information about the Digitalmars-d-announce mailing list