collectException and nothrow
Casey via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 8 19:15:21 PST 2014
Good evening,
I have a question for you. Why does collectException violate the
noThrow attribute? I would have thought that since it captures
an Exception, it would allow the method that normally would throw
an exception to be used within a noThrow method. I did get the
same effect by nesting it within a assumeNoThrow method, but I'm
still curious as to why collectException doesn't make the same
guarantee.
Btw: this is with dmd 2.066.1.
Thanks.
More information about the Digitalmars-d
mailing list