Is synchronized(...){...} doomed to never be nothrow/@nogc?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed May 11 04:11:16 PDT 2016


On 5/11/2016 12:05 AM, Dicebot wrote:
> I believe this is the way. Synchronized statements don't add any crucial value
> compared to plain locks. At the same time forbidding throwing from even more
> runtime overrides would be both annoying and unnecessary restrictive.

Also, the synchronized statement preceded the introduction of RAII, so perhaps 
it is obsolete.


More information about the Digitalmars-d mailing list