November 13, 2014 [Issue 13731] Wrong interpretation of const keyword when creating @property returning class | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13731 Dmitry Olshansky <dmitry.olsh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dmitry.olsh@gmail.com Resolution|--- |INVALID --- Comment #1 from Dmitry Olshansky <dmitry.olsh@gmail.com> --- Not a bug. const is transitive which means that Bar is const inside of foo() and as such this.foo_ is also const. http://dlang.org/const-faq.html -- |
November 13, 2014 [Issue 13731] Wrong interpretation of const keyword when creating @property returning class | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13731 --- Comment #2 from Ruslan <buday48@mail.ru> --- Oh, thanks, it wasn't obvious to me. -- |
Copyright © 1999-2021 by the D Language Foundation