[Issue 23196] File constructor fails to preallocate oom error, uses exception instead

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 22 05:33:18 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23196

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8480 "preallocate oom error" was merged into master:

- 37e22eef1cd1e409aee2e2bcc99f63e7e0ce68db by Su:
  preallocate oom error

  fixes issue 23196.

  unfortunately, while i believe it should be possible to make this function
`@nogc nothrow` [since we are throwing an error, which cannot be recovered
from], i wasn't able to figure out how to get enforce to realise it. advice
would be greatly appreciated on this front.

https://github.com/dlang/phobos/pull/8480

--


More information about the Digitalmars-d-bugs mailing list