Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

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

The current state of generics in Delphi

  Alt 1. Okt 2018, 20:50
To avoid duplication of generated code, the compiler builders of Embarcadero have done a nice job. They introduced new instrinsics like IsManagedType, GetTypeKind and IsConstantType (see this Stackoverflow answer), so they could make a function like the following generate a call to the exact function directly, so the code below "runs" completely inside the compiler (even the code in InternalAddMRef
  Mit Zitat antworten Zitat