Comparing Exceptions and Errors

kdevel kdevel at vogtner.de
Thu Jun 16 11:38:40 UTC 2022


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]


More information about the Digitalmars-d-learn mailing list