[Issue 10496] Initialization in lazy function parameter allows immutable member not to be initialized

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 28 11:08:01 PDT 2013


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #2 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-06-28 11:08:00 PDT ---
The root is that delegate construction does not respect immutability at all.

struct S
{
   void foo() immutable {}
   void baz() 
   {
      //foo();
      (&foo)();
   }
}

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