[Issue 6414] Possible problem with pure and const attribute

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 30 23:53:19 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6414


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |kennytm at gmail.com
           Platform|x86                         |All
         OS/Version|Windows                     |All


--- Comment #1 from kennytm at gmail.com 2011-07-30 23:53:15 PDT ---
I believe this is a rejects-valid. My pull request* to revert the unnecessarily
strict purity check allows this.

You could also just make `x` immutable instead of const.

*: https://github.com/D-Programming-Language/dmd/pull/243

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list