What is a dchar ?

Cecil Ward cecil at cecilward.com
Thu Jul 27 20:36:48 UTC 2023


On Wednesday, 26 July 2023 at 01:56:28 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> The spec says they are unsigned, so if ldc is using sign 
> extension, that is probably a bug.

My fault, I reread the code and the sign-extension applies to 
something else, coincidentally right where I was looking at this. 
It uses signed 32-bit displacements in a case/switch table of 
offsets into the code segment, and that was what mislead me. It 
could have used unsigned displacements but then all the labels in 
the code would have to be above the reference base point, and 
this allows +/- offsets to anywhere. So my apologies.


More information about the Digitalmars-d-learn mailing list