D has the same memory model as C++
Tejas
notrealemail at gmail.com
Tue Aug 10 18:13:17 UTC 2021
On Tuesday, 10 August 2021 at 18:07:35 UTC, Bastiaan Veelo wrote:
> On Tuesday, 10 August 2021 at 16:00:37 UTC, Tejas wrote:
>> there's casting away const, a clearly seperate language
>> feature which has no equivalent in D;
>
> You *can* cast away `const` in D: https://run.dlang.io/is/sWa5Mf
>
> — Bastiaan.
Yes, but it is UB, not defined and supported by the
standard/implementation.
More information about the Digitalmars-d-learn
mailing list