Re: Is "auto t=T();" not the same as "T t;"?
Kagamin via Digitalmars-d-learn Wed, 26 Oct 2022 08:46:40 -0700
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.
- Re: Is "auto t=T();"... Paul Backus via Digitalmars-d-learn
- Re: Is "auto t=T();" not... matheus via Digitalmars-d-learn
- Re: Is "auto t=T();"... Ali Çehreli via Digitalmars-d-learn
- Re: Is "auto t=T();"... Salih Dincer via Digitalmars-d-learn
- Re: Is "auto t=T();&... H. S. Teoh via Digitalmars-d-learn
- Re: Is "auto t=T();&... Ali Çehreli via Digitalmars-d-learn
- Re: Is "auto t=T();&... Salih Dincer via Digitalmars-d-learn
- Re: Is "auto t=T();&... Ali Çehreli via Digitalmars-d-learn
- Re: Is "auto t=T();&... Salih Dincer via Digitalmars-d-learn
- Re: Is "auto t=T();&... Andrey Zherikov via Digitalmars-d-learn
- Re: Is "auto t=T();&... Kagamin via Digitalmars-d-learn