Address of a class object
Ali Çehreli
acehreli at yahoo.com
Wed Jan 4 17:51:05 UTC 2023
On 1/3/23 20:01, Paul wrote:
> Size Alignment Type
> =========================
> 17 8 MyClass
>
> MyClassObj1 MyClassObj2
> 27727202000 27727202020
> ```
> If my size is 17 bytes and my alignment is 8 bytes, shouldn't my
> MyClassObj2 in this example be @ 277272020**18** ?
Good question.
I made some guesses about object layouts, GC allocation schemes, etc.
but did not like any of them.
Ali
More information about the Digitalmars-d-learn
mailing list