Yo me quedaría con el uso de punteros, como dice
OSKR
Código Delphi
[-]unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
Tseleccion = function (a,b:Integer):Integer;
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function An(a,b:integer):integer ;
begin
Result := a;
end;
function the(a,b:integer):integer ;
begin
Result := b;
end;
procedure TForm1.Button1Click(Sender: TObject);
var sel:Tseleccion;
begin
sel := the;
if @sel = @the then
ShowMessage('estamos usando la funcion the ');
ShowMessage(IntToStr(sel(3,5)));
end;
end.
saludos