std.concurrency and immutable

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Tue Nov 26 18:26:49 PST 2013


On Monday, 25 November 2013 at 20:55:18 UTC, Antoche wrote:
> Thanks for the suggestion. My problem with casting is that it 
> results in undefined behaviour,

Casting is defined, modifications afterwards are not.

> Finally, can anyone explained why the scope(failure) is 
> reached? Looking at the stacktrace in gdb at this point gives 
> me no indication of what's happening.

An assert error wouldn't get picked up by your catch while still 
triggering scope(failure)

catch(Throwable) to grab anything.


More information about the Digitalmars-d-learn mailing list