Map.v_init

If V is a static array, opIndex() und opIndexAssign() need to return a dynamic array slicing the value.

V.init redefinition to work around DMD bug 7752: If V is a static array, then V.init is of the array base type.

  1. Base[V.length] v_init;
    class Map(V, K)
    static immutable
    static if(is(V Base : Base[]) && !is(V == Base[]))
    Base[V.length] v_init;
  2. auto v_init;

Meta