[fpc-devel] A bit of background on compilers exploiting signed overflow
wkitty42 at windstream.net
wkitty42 at windstream.net
Sun May 8 23:39:44 CEST 2016
On 05/08/2016 04:34 PM, Jonas Maebe wrote:
> wkitty42 at windstream.net wrote:
>> i thought this was a very interesting discussion...
>>
>> https://gist.github.com/rygorous/e0f055bfb74e3d5f0af20690759de5a7
>>
>> thanks to john carmack (@ID_AA_Carmack) for retweeting this from Fabian
>> Giesen (@rygorous)...
>
> The point is kind of irrelevant in case of FPC, because overflows (signed or
> unsigned) are not undefined here. Every type is guaranteed to exhibit the
> behaviour defined by 2's complement for its particular byte size.
ahhh... i was kinda hoping that this would be the case... if it weren't, maybe a
li'l something to bring it to the attention of the devs...
strong typing for the win, again! :)
--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list* unless
private contact is specifically requested and granted.
More information about the fpc-devel
mailing list