[Issue 13731] Wrong interpretation of const keyword when creating @property returning class

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 13 14:51:39 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13731

Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dmitry.olsh at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from Dmitry Olshansky <dmitry.olsh at 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

--


More information about the Digitalmars-d-bugs mailing list