Anyone have a neat trick for declaring a record which has the same size as a generic type parameter T? The obvious

Anyone have a neat trick for declaring a record which has the same size as a generic type parameter T? The obvious

  TRec = record
     a: array[0..sizeof(T)] of uint8;
  end;

does not work because apparently we can't have nice things in Delphi...

Comments