thread exceptions

Martin Krejcirik mk-junk at i-line.cz
Wed Aug 8 12:44:08 PDT 2012


On 8.8.2012 18:15, Ali Çehreli wrote:
>                 } catch (shared(Exception) exc) {
>                     owner.send(exc);

Ahh shared, I've been trying immutable and such. Thanks a lot.

> 
> Although, I've been bitten by the fact that AssertError is not an
> Exception, so exceptions thrown by assert checks will continue to
> surprise. :/

Easy, just catch Throwable :-)

cya

-- 
mk


More information about the Digitalmars-d-learn mailing list