[Issue 6414] Possible problem with pure and const attribute

2011-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6414


bearophile_h...@eml.cc changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from bearophile_h...@eml.cc 2011-08-27 05:14:41 PDT ---
The latest versions of 2.055 give no errors, so I close this bug report.

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


[Issue 6414] Possible problem with pure and const attribute

2011-07-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6414


kenn...@gmail.com changed:

   What|Removed |Added

   Keywords||patch
 CC||kenn...@gmail.com
   Platform|x86 |All
 OS/Version|Windows |All


--- Comment #1 from kenn...@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: ---