C++'s this() equivalent?

zjh fqbqrr at 163.com
Fri Jun 16 04:07:19 UTC 2023


On Friday, 16 June 2023 at 01:45:35 UTC, CM wrote:
> ```d
> auto m = Man();
> assert(m.name == defaultName);
> ```
>
> Do note that one cannot simultaneously have a constructor and a 
> static opCall, even if their parameters differ.


Thank you for your reply. This should be enough, as this type of 
RAII is basically a `temporary struct`.



More information about the Digitalmars-d-learn mailing list