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 / test / cg / tctr1a.pp
Size: Mime:
{$mode objfpc}{$h+}
// Differs from tctr1.pp in the following directive:
{$implicitexceptions off}

type
  tobj=class(TObject)
    ffield:boolean;
    constructor Create;
    procedure AfterConstruction;override;
  end;

{ Exit statement in constructor must not jump over AfterConstruction! }
constructor tobj.Create;
begin
  exit;
end;
 
procedure tobj.AfterConstruction;
begin
  ffield:=true;
end;
 
 
var
  o: tobj;
begin
  o:=tobj.create;
  if not o.ffield then
    Halt(1);
end.