www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22959] New: Documentation for C/D main is incomplete


          Issue ID: 22959
           Summary: Documentation for C/D main is incomplete
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

Some aspects of the implementation is not found in the documentation for main
functions (both C and D).

- qualifiers are allowed for parameter / return types
- enums with appropriate base types are allowed
- extern(C) main may be used without -betterC
- some valid signatures for extern(C) main are missing
- no workaround for exotic main signatures

Mar 29 2022