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-statementQuote (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.