D design problem on platforms with <32 bit pointer width

Johan j at j.nl
Sun Aug 20 21:36:02 UTC 2023


On Sunday, 20 August 2023 at 20:06:29 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> 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.

Please don't make this discussion any larger than it should be.

-Johan



More information about the Digitalmars-d mailing list