Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 09, 2018 [Issue 18960] Function parameter requires name with default value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18960 Richard Cattermole <alphaglosined@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |bootcamp -- |
February 18, 2019 [Issue 18960] Function parameter requires name with default value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18960 Tiberiu Lepadatu <tiberiulepadatu14@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tiberiulepadatu14@gmail.com --- Comment #1 from Tiberiu Lepadatu <tiberiulepadatu14@gmail.com> --- Hello! I have written a solution that checks if "ai" is not null at https://github.com/dlang/dmd/blob/master/src/dmd/parse.d#L3014 at if it is, it throws an error; but this creates an error message for the following program: void main() { import std.stdio; writefln("%i", 3); } The error is: /druntime/import/core/internal/traits.d(140): Error: TFunction parameter requires name with default value at == __InoutWorkaroundStruct ai == (null) /druntime/import/core/internal/traits.d(141): Error: TFunction parameter requires name with default value at == __InoutWorkaroundStruct ai == (null) >From what I have gathered the at is where the type of the parameter is stored. Why is the line 140 different? (I am a newcomer so please do not judge the question) PS: I did not find a solution using the line that you have provided because there are no parameters checked in that line in the parser. Thank you in advance! -- |
December 05, 2021 [Issue 18960] Function parameter requires name with default value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18960 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- @sorin-gabriel updated dlang/dlang.org pull request #3135 "Fix Issue 18960 - Function parameter requires name with default value " fixing this issue: - fix Issue 18960 - Function parameter requires name with default value https://github.com/dlang/dlang.org/pull/3135 -- |
December 05, 2021 [Issue 18960] Function parameter requires name with default value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18960 Richard Cattermole <alphaglosined@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Richard Cattermole <alphaglosined@gmail.com> --- I am pretty sure I misinterpreted some parts of the spec relating to function parameter declarations. However, I cannot know for certain due to having not linked the part of the spec in question. Therefore I am closing it as invalid. -- |
Copyright © 1999-2021 by the D Language Foundation