struct initializer

zjh fqbqrr at 163.com
Fri Dec 1 14:06:23 UTC 2023


On Friday, 1 December 2023 at 13:02:06 UTC, Dom DiSc wrote:
>
> ```d
> S Fun(){ return { 5, 2 }; }
> ```
>
> This IS an initialization and the type is known. Requiring the 
> repetition of the type is also here annoying.

Right.
The `{}` initialization method in C++ is very useful,I like it 
very much.




More information about the Digitalmars-d-learn mailing list