`restricted` member variables

Max Samukha maxsamukha at gmail.com
Tue Jun 21 08:40:28 UTC 2022


On Tuesday, 21 June 2022 at 08:37:55 UTC, Max Samukha wrote:

> class E
> {
>   void(int newY) {
>     this int y; // 'this' as storage class will likely be 
> grammatically ambiguous
>     newY = y;
>   }
> }
>

Typo. Should be:

```d
class E
{
     void(int newY) {
         this int y;
         y = newY;
     }
}
```


More information about the Digitalmars-d mailing list