[Issue 11091] Deduced purity doesn't work?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 22 04:15:35 PDT 2013


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-09-22 04:15:34 PDT ---
This is expected change in git-head, introduced by fixing bug 10254.

In the OP code, the constructor in E is not annotated with pure. So, the
expression object creation new E("msg") is essentially impure. But in 2.063 and
earlier, NewExpression had wrongly ignored the called constructor purity and
safety (== bug 10254). Then enforceEx!E had been also incorrectly deduced to
pure.

-- 
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