Thread overview | |||||
---|---|---|---|---|---|
|
January 25, 2017 [Issue 15737] forward reference error in std.format | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15737 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com --- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> --- The problem is that the function has the const identifier which implicitly makes this const, while writeln expects a non-const argument. I think that this isn't an issue, but a programming mistake; removing const from the functions will solve the issue. -- |
January 25, 2017 [Issue 15737] forward reference error in std.format | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15737 --- Comment #2 from John Colvin <john.loughran.colvin@gmail.com> --- Simpler example with the same problem: void main() { import std.stdio; const Object o; writeln(o); } Not using const is a workaround, but a) writeln should be able to work with a const Object and b) even if it can't, it shouldn't cause a forward reference error. -- |
August 31, 2018 [Issue 15737] forward reference error in std.format | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15737 Ajieskola@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |Ajieskola@gmail.com Resolution|--- |FIXED --- Comment #3 from Ajieskola@gmail.com --- I just tested that with DMD v2.081.2, both of the mentioned examples now compile and run without errors. This issue is thus fixed. -- |
Copyright © 1999-2021 by the D Language Foundation