| Thread overview | ||||||||
|---|---|---|---|---|---|---|---|---|
|
November 10, 2019 [Issue 20377] extern(C) void main(string[] args) has invalid 'args' | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20377 elronnd@elronnd.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |elronnd@elronnd.net --- Comment #1 from elronnd@elronnd.net --- 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. However I do agree that, with the current behaviour, errors such as yours are likely to occur. Proposal: make it a warning with a 'did you mean (int argc, char **argv)?' which also notes that if you really do want that behaviour you can silence the warning with pragma(mangle, "main") void cmain(string[]) -- | ||||
November 10, 2019 [Issue 20377] extern(C) void main(string[] args) has invalid 'args' | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20377 Richard Cattermole <alphaglosined@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alphaglosined@gmail.com --- Comment #2 from Richard Cattermole <alphaglosined@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 -- | ||||
June 13, 2020 [Issue 20377] extern(C) void main(string[] args) has invalid 'args' | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20377 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |b2.temp@gmx.com Severity|enhancement |normal -- | ||||
June 13, 2020 [Issue 20377] extern(C) void main(string[] args) has invalid 'args' | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20377 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=20378 -- | ||||
March 29, 2022 [Issue 20377] extern(C) void main(string[] args) has invalid 'args' | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20377 duser@neet.fi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |duser@neet.fi Resolution|--- |FIXED --- Comment #3 from duser@neet.fi --- this has been fixed by https://github.com/dlang/dmd/pull/13749 -- | ||||
March 29, 2022 [Issue 20377] extern(C) void main(string[] args) has invalid 'args' | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20377 moonlightsentinel@disroot.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |moonlightsentinel@disroot.o | |rg Resolution|FIXED |DUPLICATE --- Comment #4 from moonlightsentinel@disroot.org --- *** This issue has been marked as a duplicate of issue 22831 *** -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply