[Issue 21523] New: Microsoft Windows std.stdio.File.lock(), tryLock(), unlock(): do not allocate memory for error messages when they are not needed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 4 01:08:48 UTC 2021


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

          Issue ID: 21523
           Summary: Microsoft Windows std.stdio.File.lock(), tryLock(),
                    unlock(): do not allocate memory for error messages
                    when they are not needed
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

The non-Windows paths use `errnoEnforce` that lazily evaluates the messages.
The Windows path uses a private function `wenforce` that evaluates its
arguments eagerly.

--


More information about the Digitalmars-d-bugs mailing list