Is "auto t=T();" not the same as "T t;"?

Kagamin spam at here.lot
Wed Oct 26 15:44:29 UTC 2022


Looks like explicitly initialized variable in this case allocates 
array literal. Uninitialized variable is initialized with init 
pattern. This may be correct as uninitialized variable isn't 
guaranteed to hold a value most useful for you, it's only 
guaranteed to hold a defined value.


More information about the Digitalmars-d-learn mailing list