Address of a class object
phshaffer at gmail.com
Wed Feb 1 05:49:24 UTC 2023
On Thursday, 5 January 2023 at 05:59:26 UTC, Ali Çehreli wrote:
> On 1/4/23 20:04, Paul wrote:
> >> (Again, there is no problem here; we are just learning.)
> >> Ali
> > Do I have this much right?
> > ..with this output?
> Looks good to me.
> 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'.
I was tinkering with this use of 'scope' and the math for pointer
location, object size, and alignment started working out.
More information about the Digitalmars-d-learn