atomic operations compared to c++
Patrick Schluter via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 14 07:27:30 PDT 2017
On Wednesday, 14 June 2017 at 12:15:49 UTC, Russel Winder wrote:
> On Wed, 2017-06-14 at 12:28 +0100, rikki cattermole via
> Digitalmars-d wrote:
>> > [...]
>
> Step back a moment. C++ and Java are trying to stop programmers
> using these features, in favour of using higher level
> abstractions. In C++ and Java such features as above are often
> required to implement the higher level abstraction but so as to
> allow other programmers not to have to use them.
>
> [...]
Especially since D has officially support for inline assembly.
All these low-level constructs are better handled directly at the
machine code level as their semantic varies significantly between
architectures.
More information about the Digitalmars-d
mailing list