D design problem on platforms with <32 bit pointer width

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Aug 20 20:06:29 UTC 2023


On 21/08/2023 7:13 AM, Walter Bright wrote:
> Keep integer promotion, but have it promote to short rather than int. I 
> haven't thought about it deeply, but first impression says that it will 
> resolve most of the issues.

This does beg another question. Should we make integer promotion tied to 
the largest general purpose (fast) registers for a given target? So 
AMD64 that'll be (u)long. Whereas 16bit x86 that'll be (u)short.


More information about the Digitalmars-d mailing list