testpointers.out

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

OUT
48
字号
unit TestPointers;

{ AFS 28 March 2000
 This unit compiles but is not semantically meaningfull
 it is test cases for the code formatting utility

 This unit tests pointer operators
}
interface

type
  TFred = record
    fi1:      integer;
    fc2:      currency;
    Ganzfeld: string;
  end;

  pTFred  = ^TFred;
  ppTFred = ^pTFred;


procedure Stuff;

implementation

procedure Stuff;
var
  f:   TFred;
  pf:  PTFred;
  ppf: ppTFred;
  li:  integer;
begin
  pf  := @f;
  ppf := @pf;

  pf := ppf^;
  f  := pf^;

  f := ppf^^;

  pf  := @f;
  ppf := @pf;
  li  := 3;

end;

end.

⌨️ 快捷键说明

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