Hi.

Lets say i have simple unit.
This unit has simple types declared:
Code:
unit Unit2;

interface

type
  _TKey= string;
  _TValue= Cardinal;

implementation

end.
You see in this case there are "string" and "Cardinal" used.

Is it possible somehow pass these from another unit?
I mean, from main Unit1 i would like to have that _TKey would become type of "Integer" for example.

I know there are generics in FPC and newer Delphis, but without generics, is it possible or not?
Or only possible way is to always change the unit itself, manually?



Im using Delphi 7 Personal.