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 / tobjc31.pp
Size: Mime:
{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm }

{$mode objfpc}
{$modeswitch objectivec1}

{ test program by saabino80 at alice in Italy for nested procedures in
  Objective-C methods }

Program Foo;
uses
        ctypes;

Type MyObjc= objcclass(NSObject)
Procedure nested; message 'nested';

End;
Procedure MyObjc.nested;

Procedure one;
Begin;
 WriteLn('Ciao');
End;
Begin
one;
End;

Var My:MyObjc;
Begin
My := MyObjc.alloc;
My.nested;
My.release;
End.