Can now use alias for collapsing multiple fields in nested structs

Derek Fawcus dfawcus+dlang at employees.org
Wed Jan 8 09:38:18 UTC 2025


On Wednesday, 8 January 2025 at 08:13:58 UTC, ryuukk_ wrote:
>
> https://github.com/dlang/dmd/pull/20653
>
> D++ gets a free pass

The point would seem to be that the change does not break, nor 
change the meaning of, any previously functional code.

Anyway, I'd actually characterise this as a subset of Algol 68 
style, which Go (and I guess C++) just happen to support.

```Algol68
BEGIN
	INT a = 2;

	IF INT b = a OVER 2; print(b); a > 1 THEN
		print((newline, "a > 1", newline))
	FI;
	print(newline)
END
```
```
$ a68g conditional.a68
          +1
a > 1

```


More information about the Digitalmars-d mailing list