Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lazarus / usr / share / lazarus / 1.6 / components / codetools / examples / scanexamples / publishedmethods1.pas
Size: Mime:
unit PublishedMethods1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, PublishedMethods2;

type
  TPoint = PublishedMethods2.Point;
  TMyMethodWithTPoint = procedure (x: TPoint) of object;

function Point: TPoint; // <- it is not TypeDefinition of "Point"

type
  TMyMethodWithAnInteger = procedure (x:T) of object;
  T = char;
  TMyMethodWithAnChar = procedure (x:T) of object;

  { TMyClass }
  {$M+}
  TMyClass = class
  published
    procedure F(x: T);
    procedure DoPoint(x: TPoint);
  end;
  {$M-}

implementation

function Point: TPoint;
begin

end;

{ TMyClass }

procedure TMyClass.F(x: T);
begin

end;

procedure TMyClass.DoPoint(x: TPoint);
begin

end;

end.