On Monday, 25 May 2020 at 01:35:47 UTC, Danni Coy wrote:
can anybody tell me whystruct S { int x; alias x this; } void test() { S s; s = 8; // this works S s = 8 // but this does not? }
lalit.singhh via Digitalmars-d-learn Mon, 25 May 2020 06:15:48 -0700
On Monday, 25 May 2020 at 01:35:47 UTC, Danni Coy wrote:
can anybody tell me whystruct S { int x; alias x this; } void test() { S s; s = 8; // this works S s = 8 // but this does not? }