[Issue 22328] New: Specific D types are used instead of Windows type aliases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 22 07:04:38 UTC 2021


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

          Issue ID: 22328
           Summary: Specific D types are used instead of Windows type
                    aliases
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: maxsamukha at gmail.com

Using D types directly leads to subtle bugs like BOOL being translated to bool
or LONG to long (both should be int). For example,
core.sys.windows.dll.SimpleDllMain.DllMain has bool instead of BOOL as the
return type (https://github.com/dlang/druntime/pull/3571)

--


More information about the Digitalmars-d-bugs mailing list