April 04, 2022 [Issue 22986] New: Phobos cannot be compiled with dip1008 | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22986 Issue ID: 22986 Summary: Phobos cannot be compiled with dip1008 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: razvan.nitu1305@gmail.com Phobos exceptions sometimes escape their catch block, however, dip1008 does not allow that. One example: https://github.com/dlang/phobos/blob/master/std/parallelism.d#L3770 . However, there are others, just try to compile phobos with dip1008. Although the DIP says that the exception can be cloned in this case, the problem is that the user then needs to manually manage the exception (free it). I don't think that this is a phobos problem, rather that dip1008 is too restrictive. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply