[Issue 20377] extern(C) void main(string[] args) has invalid 'args'
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Nov 10 05:30:01 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20377
Richard Cattermole <alphaglosined at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com
--- Comment #2 from Richard Cattermole <alphaglosined at gmail.com> ---
(In reply to elronnd from comment #1)
> I don't think straight up erroring is a good idea.  extern(C) void
> main(string[]) is perfectly *valid*; I don't think the language says
> anything special about the type of extern(C) main.
The spec says nothing about extern(C) main at all.
https://dlang.org/spec/function.html#main
As far as its concerned it should be invalid.
https://issues.dlang.org/show_bug.cgi?id=20378
--
    
    
More information about the Digitalmars-d-bugs
mailing list