{$MODE DELPHI} type TSmallWrapper = record Value: TValue; end; TWrapper = class strict private class var FSmallWrapper: TSmallWrapper; public class procedure Z; static; end; class procedure TWrapper.Z; begin FSmallWrapper.Value := 0; Inc(FSmallWrapper.Value); Dec(FSmallWrapper.Value); FSmallWrapper.Value := Succ(FSmallWrapper.Value); FSmallWrapper.Value := Pred(FSmallWrapper.Value); end; begin TWrapper.Z; end.