Synchronized classes have no public members

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 13 12:05:29 PDT 2015


On Tuesday, 13 October 2015 at 18:28:23 UTC, Marco Leise wrote:
> Guys, sorry to break into your wishful thinking, but
>
>    synchronized(mutex) {}
>
> already works as you want it to since as long as I can think. 
> Yes, it takes a parameter, yes it calls lock/unlock on the 
> mutex. :)

Yes, and I am saying that it doesn't justify presence of 
`synchronized` keyword in the language at all, being historical 
legacy misfeature.


More information about the Digitalmars-d mailing list