Classes on stack

Nick Treleaven nick at geany.org
Sat Sep 3 16:52:18 UTC 2022


On Thursday, 1 September 2022 at 19:45:08 UTC, IGotD- wrote:
>
> I previously saw an example that allocated the space in the 
> class for the member class, unfortunately I cannot find it.

There's scoped:
https://dlang.org/library/std/typecons/scoped.html

Scroll down the example to the "Use as member variable" part. I 
assume it can be used as a class member too.


More information about the Digitalmars-d mailing list