Something needs to happen with shared, and soon.
Sean Kelly
sean at invisibleduck.org
Thu Nov 15 08:45:35 PST 2012
On Nov 15, 2012, at 7:17 AM, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> On 11/15/12 1:08 AM, Manu wrote:
>>
>> Side note: I still think a convenient and fairly practical solution is
>> to make 'shared' things 'lockable'; where you can lock()/unlock() them,
>> and assignment to/from shared things is valid (no casting), but a
>> runtime assert insists that the entity is locked whenever it is
>> accessed.
>
> This (IIUC) is conflating mutex-based synchronization with memory models and atomic operations. I suggest we postpone anything related to that for the sake of staying focused.
By extension, I'd suggest postponing anything related to classes as well.
More information about the Digitalmars-d
mailing list