Eigenpoll : D wish list : Explicit type initializers 

E.g.:

double d = double(3.14159);

struct S
{
int x, y, z;
}

S s = S(10,20,30);

This would at least partly address three issues: 1) structs not having ctors 2) non-static initializers for structs and 3) make generic programming using templates more straight-forward in some situations (obviate the need for 'static if(is(...))' in many cases).

Report this item for cleanup