Why do you continue to use D?
Mathias LANG
geod24 at gmail.com
Fri Jun 5 10:28:01 UTC 2020
On Friday, 5 June 2020 at 10:15:25 UTC, Walter Bright wrote:
> On 6/4/2020 7:44 PM, Manu wrote:
>> ...
>
> Regarding shared,
>
> void test(shared(int)* p) { *p = 1; }
>
> dmd -preview=nosharedaccess test
>
> test.d(31): Error: direct access to shared *p is not
> allowed, see core.atomic
>
> Isn't that what you wanted?
There are quite a few bugs with the `-preview=nosharedaccess`
switch, and before you ask, yes it's in bugzilla:
https://issues.dlang.org/show_bug.cgi?id=20195
Regarding inline, here's what I believe Manu is complaining
about: https://issues.dlang.org/show_bug.cgi?id=19570
I will add that rvalue references are also completely broken, but
I'm not sure how relevant it is to Manu (it's certainly relevant
for C++ interop, though):
- https://issues.dlang.org/show_bug.cgi?id=20706
- https://issues.dlang.org/show_bug.cgi?id=20705
- https://issues.dlang.org/show_bug.cgi?id=20704
More information about the Digitalmars-d
mailing list