Absolute address

Top  Previous  Next

What is translated > Absolute address

 

By the word absolute a variable can be declared in Delphi that resides at the same address as an existing variable. This behavior is reproduced in C++ by declaring the new variable as a reference to the existing variable. If necessary according typecast's are inserted.

 

 

var

  Size: Int64;

  SizeRec: TInt64Rec absolute Size;

 

->

 

  __int64 Size = 0;

  TInt64Rec& SizeRec = *(TInt64Rec*) &Size;

 

 

 

 



This page belongs to the DelphiXE2Cpp11 Documentation

DelphiXE2Cpp11 home  Content