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    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw28530.pp
Size: Mime:
{ %NORUN }

program tw28530;

{$mode objfpc}

type
  generic TDistanceFunction<t> = function (x,y : t) : Extended;

  generic PlanarCoordinate<t> = record
    x,y : t;
    d : specialize TDistanceFunction<t>;
  end;
  TScreenCoordinate = specialize PLanarCoordinate<word>;
  TDiscreteCoordinate = specialize PlanarCoordinate<integer>;
  TRealCoordinate = specialize PlanarCoordinate<extended>;

  TScreenDistance = specialize TDistanceFunction<word>;
  TDiscreteDistance = specialize TDistanceFunction<integer>;
  TRealDistance = specialize TDistanceFunction<Extended>;

  generic TPointSet<t> = array of specialize PlanarCoordinate<t>;

begin
end.