Can now use alias for collapsing multiple fields in nested structs

Vladimir Panteleev thecybershadow.lists at gmail.com
Thu Jan 2 11:32:31 UTC 2025


On Saturday, 28 December 2024 at 19:21:43 UTC, Walter Bright 
wrote:
> ```d
> struct S {
>     int x;
>     T t;
>     alias ti = t.i;
> }
> ```

Thank you, I'm curious what does this enable on top of

```d
	@property ref ti() => t.i;
```
?



More information about the Digitalmars-d mailing list