Comparing Exceptions and Errors

bauss jj_1337 at live.dk
Thu Jun 16 11:49:28 UTC 2022


On Thursday, 16 June 2022 at 11:38:40 UTC, kdevel wrote:
> On Thursday, 16 June 2022 at 11:28:32 UTC, bauss wrote:
> [...]
>>> https://dlang.org/spec/statement.html#scope-guard-statement
>>>
>>> Quote (again): "A [...] scope(success) statement may not exit 
>>> with a throw [...]."
> [...]
>> If the spec forbids it, but the compiler allows it, wouldn't 
>> it then be a bug?
>
> What does "it" referer to? The code, throwing in scope guard? 
> The spec? The compiler? [yes, no, no]

Throwing in a scope guard.


More information about the Digitalmars-d-learn mailing list