Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   `Inc(I)` versus `I := I + 1;` in Delphi – they’re the same, but not atomic per se. (https://www.delphipraxis.net/194039-%60inc-i-%60-versus-%60i-%3D-i-1%3B%60-delphi-%96-they%92re-same-but-not-atomic-per-se.html)

DP News-Robot 10. Okt 2017 13:20

`Inc(I)` versus `I := I + 1;` in Delphi – they’re the same, but not atomic per se.
 
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 ...http://feeds.feedburner.com/~r/delph...~4/q4h_7x_4A5A

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz