scope(success) lowered to try-catch ?

Cauterite cauterite at gmail.com
Sun Jun 17 12:31:58 UTC 2018


On Sunday, 17 June 2018 at 12:10:33 UTC, Nicholas Wilson wrote:
> I suspect scope(success) is lowered because scope(exit) and 
> scope(failure)
> are, and that would result in a simpler (compiler) 
> implementation of it.
>
> does adding nothrow to main fix it? For dcompute I specifically 
> allow scope(exit|success) because there will never be any 
> exceptions _at all_.
>
> If not, please do submit an issue. Also a better error message 
> should be given.

nothrow unfortunately doesn't help; i guess I'll file an issue.
thanks for your input


More information about the Digitalmars-d-learn mailing list