Application Binary Interface's a refresher of how D works

user1234 user1234 at 12.de
Tue Jan 27 07:14:30 UTC 2026


On Monday, 26 January 2026 at 21:21:50 UTC, FinalEvilution wrote:
> On Tuesday, 20 January 2026 at 12:11:30 UTC, Richard (Rikki) 
> Andrew Cattermole wrote:
>> The N.G. has been a bit light on posts lately, so I thought 
>> I'd write something up that might drum up some interest.
>>
>> [...]
>
> Thanks for the write-up rikki. Always interesting to know 
> what's going on under the hood.
> Question for you. Why the difference between C and D struct 
> sizeof?

every object has its own memory address.

```d
struct S {}
S[2] array;
assert(&array[0] !is &array[1]);
```


More information about the Digitalmars-d mailing list