testgenericclassoperators.out

来自「格式化源码的最新板」· OUT 代码 · 共 24 行

OUT
24
字号
program testgenericclassoperators;{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  toperateur<t> = class
    champ1: t;
    procedure test(const Value: toperateur<t>);
    class operator negative(const Value: toperateur<t>): toperateur<t>;
  end;
  tmonrecord1 = record
    procedure test(const Value: tmonrecord1);
      class operator negative(const Value: tmonrecord1): tmonrecord1;
  end;

  tmonrecord<t> = record
    champ1: t;
    procedure test(const Value: tmonrecord<t>);
      class operator
        negative(const Value: tmonrecord<t>): tmonrecord<t>;
  end;
end.
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?