Nordlöw:

Is there a convenicene function for assigning an empty dynamic array of a given type to a variable?

    cast(int[])[];

                    _range = cast(D[])[];

If the variable is already typed, you can use [] otherwise you can use cast(T)[] or (T[]).init to avoid casts.

Bye,
bearophile

Reply via email to