www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22328] New: Specific D types are used instead of Windows type

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 puremagic.com
          Reporter: maxsamukha 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)

--
Sep 22