Concept proposal: Safely catching error

Stanislav Blinov via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 8 08:19:54 PDT 2017


On Thursday, 8 June 2017 at 14:13:53 UTC, Steven Schveighoffer 
wrote:

> void foo(Mutex m, Data d) pure
> {
>    synchronized(m)
>    {
>    	// ... manipulate d
>    } // no guarantee m gets unlocked
> }
>
> -Steve

Isn't synchronized(m) not nothrow?


More information about the Digitalmars-d mailing list