Prime sieve language race
Paul Backus
snarwin at gmail.com
Thu Jul 15 13:12:34 UTC 2021
On Wednesday, 14 July 2021 at 20:45:05 UTC, ag0aep6g wrote:
> On Wednesday, 14 July 2021 at 19:10:55 UTC, Sebastiaan Koppe
> wrote:
>> Because member functions are harder to call from multiple
>> threads than static functions are. For one, you will have to
>> get the object on two threads first. Most functions that do
>> that require a shared object, which requires a diligent
>> programmer to do the casting.
>
> The object isn't necessarily the thing that is being shared. A
> method can be accessing some `__gshared` global just like a
> static function can.
`@safe` code can't access `__gshared` data.
More information about the Digitalmars-d
mailing list