When porting some communications code that used records as properties from Delphi 2006 to Delphi XE2, I came across a tightened compiler error “E2197 Constant object cannot be passed as var parameter“. Let me first explain the good old*occurrence*of E2197 with some code that uses my last ...
More...