Synchronization on immutable object

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 23 02:20:49 PDT 2016


On Wednesday, 23 March 2016 at 00:11:32 UTC, Dicebot wrote:
> On 03/22/2016 12:49 PM, Johan Engelen wrote:
>> Quiz: does this compile or not?
>
> tl; dr: most of druntime internal functions bypass qualifiers 
> and are constant source of type system violation bugs. There is 
> a similar violation with `try { throw new immutable Exception; 
> } catch(Exception) { }` and plenty of array appending bugs have 
> been fixed in the past.

Thanks.
Gives some confidence in the correctness of 
https://github.com/D-Programming-Language/dmd/pull/5564


More information about the Digitalmars-d mailing list