When Const is Not Const

Recently on the Delphi Developer FB Group, this interesting post caused quite the confusion: Enter the Debugger With the const modifier the memory addresses are the same (pass by reference): p1: TPoint $427CECp2: TPoint $427CEC Without const, they are different (pass by value): p1: TPoint $427CECp2: TPoint $19FF28 The global variable p1 has a value […]