testdelphinetconst.out

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

OUT
46
字号
unit testdelphinetconst;

interface

type
  ttemperatureconverter = class(TObject)
  public
  const
    absolutezero = -273;
  end;

type
  tmyclass = class
  const
    x = 12;
    y = tmyclass.x + 23;

    procedure hello;
  private
  const
    s = 'A string constant';
  end;

  ttestconstfirst = class(TObject)
  const
    some_const = 1;
  private
    testint: int32;
  end;

  ttestconstfirst2 = class(TObject)
  const
    some_const  = 1;
    other_const = 2;
  private
    testint: int32;
  end;

implementation

procedure tmyclass.hello;
begin
end;

end.
 

⌨️ 快捷键说明

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