Address of a class object

Paul phshaffer at gmail.com
Thu Jan 5 18:54:04 UTC 2023


On Thursday, 5 January 2023 at 05:59:26 UTC, Ali Çehreli wrote:

> While we're here, you can force the class objects to be on the 
> stack as well:
>
>     scope MyClassVar1 = new MyClass();
>
> I replaced 'auto' with 'scope'.
>
> Ali

Very interesting.  Thanks Ali.




More information about the Digitalmars-d-learn mailing list