static alias this and if/do/while/for

Vladimirs Nordholm v at vladde.net
Mon Oct 26 13:21:57 UTC 2020


On Thursday, 22 October 2020 at 21:55:59 UTC, Jack Applegame 
wrote:
> Now we can use type Foo as if it were an lvalue/rvalue:
>
>> Foo = 5;
>> int a = Foo;
>> int b = Foo + a;

Haha, that's pretty neat!


More information about the Digitalmars-d-learn mailing list