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.0.0 / tests / test / uobjc26.pp
Size: Mime:
{$modeswitch objectivec1}

{ Written by Jonas Maebe in 2009, released into the public domain }

unit uobjc26;

interface

type
  ta = objcclass(NSObject)
    l: longint;
    procedure taproc; message 'taproc';
  end;

implementation

type
  ca = objccategory(ta)
    procedure implementationcategorymethod; message 'implementationcategorymethod';
  end;

procedure ca.implementationcategorymethod;
begin
  l:=1;
end;

procedure ta.taproc;
begin
  l:=0;
  implementationcategorymethod;
  if l<>1 then
    halt(1);
end;

end.