Even though the hidden `this` parameter is `ref`. ```d struct S { int i; int f() => ++i; } void main() { //S().i++; // cannot modify, `S().i` is not an lvalue assert(S().f() == 1); // OK } ``` PR incoming.
Activity
[spec/struct] Add Member Functions section
[spec/struct] Add Member Functions section