Bug 20846 – Using previous arguments in default values

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-05-19T17:57:11Z
Last change time
2024-12-13T19:08:44Z
Assigned to
No Owner
Creator
Victor Porton
Moved to GitHub: dmd#17957 →

Comments

Comment #0 by porton — 2020-05-19T17:57:11Z
I propose to make this compilable: void f(int a, int b=a) { } and even this: void f(int a, int b=a*a) { }
Comment #1 by robert.schadek — 2024-12-13T19:08:44Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17957 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB