www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14151] New: AA byKey/byValue unavailable for CTFE


          Issue ID: 14151
           Summary: AA byKey/byValue unavailable for CTFE
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: peter.alexander.au gmail.com

enum x = [1:2].byKey.front;

object.di(467): Error: _aaRange cannot be interpreted at compile time, because
it has no available source code

Expected: should be available (.keys and .values are).

Feb 08 2015