In-place struct initialization

Salih Dincer salihdb at hotmail.com
Tue May 3 08:28:32 UTC 2022


On Tuesday, 3 May 2022 at 06:38:34 UTC, test123 wrote:
> https://github.com/dlang/DIPs/pull/22
> https://github.com/dlang/DIPs/pull/71
>
>
> 6 year passed, any idea when this will be done ?

Do I need to know the name of the members in a struct? Isn't it 
easier to use it unknowingly and directly?

```d
assert(Extremes(1, 100).gaussSum == 5050);
//auto t2 = Extremes(minor:12, major:99)
Extremes(12, 99).gaussSum(3).writeln; // 1665
```

On Tuesday, 3 May 2022 at 06:48:36 UTC, test123 wrote:
> [...]
> Maybe this is why D unpopular. Newbie come here and find the 
> problem and solution, but D core team don't care to comment or 
> merge it for 5 year.  This is sure to scare a lot of people 
> away.

I think you have to think well.  There may be another reason for 
this.

SDB at 79


More information about the Digitalmars-d mailing list