E
Ehud Shapira
But that doesn't help choose which element is being initialized.
would be needed. But requiring it for simple cases seems redundant.
static when this makes sense). I thought you were talking about cases
like simple, ctor-less, initialized structs.
Both are the same, there's no "which".union U
{
double d1 ;
double d2 ;
} u = 3.1415 ;
Here there's ambiguity, so in this case I agree further qualificationunion U
{
long l ;
double d ;
} u = 42 ;
Which element is being initialized?
would be needed. But requiring it for simple cases seems redundant.
Of course this would be dynamic (with perhaps being optimized to aint* p = new int ;
static when this makes sense). I thought you were talking about cases
like simple, ctor-less, initialized structs.