[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.programming

Here is the exception...

Ramine

12/28/2015 8:54:00 PM


Hello,


Here is the exception that you can catch in FreePascal if
you compile with the -Co option:


try

except
on EIntOverflow do HandleIntOverflow;
end;


And that's better than C++ and C, because on a more complex realtime
safety critical systems if you forget to test the overflow or underflow
you can risk more , but in FreePascal you can also catch the
EIntOverflow exception and this exception works for both
signed and unsigned 32 bit or 64 bit variables for multiplication
division and add etc. and that's better than C++ and C.



Thank you,
Amine Moulay Ramdane.