Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.962 Beiträge
 
#1

`Inc(I)` versus `I := I + 1;` in Delphi – they’re the same, but not atomic per se.

  Alt 10. Okt 2017, 12:20
Given a variable I: Integer, some people like Inc(I);*others like I := I + 1;. You might think that part of that discussion nowadays should be multithreading. In practice this does not matter: the compiler will use the same instructions for both statements. TL;DR: This*might make you think they are ...

More...
  Mit Zitat antworten Zitat