Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
June 05, 2015 [Issue 14651] Typesafe variadic functions don't work after optional arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14651 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schveiguy@yahoo.com --- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> --- I found something that works, but the syntax is a little weird (BTW, this is not in the grammar, not sure if it's accidentally accepted): void func1(size_t argc = 0, string[] argv = null...) I don't know if this is intentional. I'm going to bring it up on the newsgroup. -- |
December 17, 2022 [Issue 14651] Typesafe variadic functions don't work after optional arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14651 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
February 08 [Issue 14651] Typesafe variadic functions don't work after optional arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14651 Paul Backus <snarwin+bugzilla@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |artha@samerion.com --- Comment #2 from Paul Backus <snarwin+bugzilla@gmail.com> --- *** Issue 24372 has been marked as a duplicate of this issue. *** -- |
February 08 [Issue 14651] Typesafe variadic parameter after optional parameter causes ICE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14651 Paul Backus <snarwin+bugzilla@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice Priority|P4 |P3 CC| |snarwin+bugzilla@gmail.com Summary|Typesafe variadic functions |Typesafe variadic parameter |don't work after optional |after optional parameter |arguments |causes ICE Severity|enhancement |normal --- Comment #3 from Paul Backus <snarwin+bugzilla@gmail.com> --- As described in issue 24372, this now causes an internal compiler error instead of printing an error message. Minimal example: --- void func(size_t argc = 0, string[] argv...) {} void main() { func(); } --- -- |
September 11 [Issue 14651] Typesafe variadic parameter after optional parameter causes ICE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14651 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |DUPLICATE --- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> --- *** This issue has been marked as a duplicate of issue 24760 *** -- |
Copyright © 1999-2021 by the D Language Foundation