Synchronization on immutable object

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 22 17:11:32 PDT 2016


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.



More information about the Digitalmars-d mailing list