Recent

Author Topic: making types totally incompatible  (Read 4000 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 18780
  • To Europe: simply sell USA bonds: dollar collapses
Re: making types totally incompatible
« Reply #30 on: April 19, 2025, 03:13:24 pm »
How about:
Code: Pascal  [Select][+][-]
  1. {$mode objfpc}
  2. type
  3.   generic TMyGenericRecord<T> = record
  4.     value:T;
  5.   end;
  6. begin
  7. end.
Initial tests show assignment is only to specialized T, nothing else.
Will finish it later.
« Last Edit: April 19, 2025, 03:19:33 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

 

TinyPortal © 2005-2018