www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15495] New: initializeAll should initialise const objects?


          Issue ID: 15495
           Summary: initializeAll should initialise const objects?
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

I feel like initializeAll(target), where target is an uninitialised range of
const(T) should work?

It seems that it only works if target is mutable. const objects must be
initialised somehow, and this function seems like a reasonable form of

Lift this restriction?

Jan 01 2016