Re: Getting pointer to overloaded procedure



William Egge wrote:

Can anyone tell me a way I can get a pointer to an overloaded
procedure or function?

For instance:

procedure Test(S: string); overload;
procedure Test(I: Integer); overload;

var
PToStr, PToInt: Pointer;


By using typed procedure pointers...

type
PProcS = procedure(S: string);
PProcI = procedure(I: Integer);

var
PToStr: PProcS;
PToInt: PProcI;
begin
PToStr := Test;
PToInt := Test;


--
Pieter
.



Relevant Pages

  • Getting pointer to overloaded procedure
    ... Can anyone tell me a way I can get a pointer to an overloaded procedure or ... procedure Test(S: string); overload; ... procedure Test; overload; ...
    (borland.public.delphi.language.basm)
  • Re: Calculate the string statement
    ... verkn:(vkn:char; ... funkt:(fkt:string; ... var fkt,dfkt: p; ... var fehler: boolean; ...
    (comp.lang.pascal.borland)
  • Two new tests for MM B&V
    ... var RunningThreads: Integer; ... class function TStringThreadTest.GetBenchmarkDescription: string; ... function CheckPattern(const Dest: Pointer; const Size: Integer; const ...
    (borland.public.delphi.language.basm)
  • server-side JavaScript: Prototypes of built-in classes, objects and functins
    ... Session object (disk-based session variables for data persistence ... File class (manipulation of files on server, ie. open, close, read, ... //Methods Cgi.queryCgi.postCgi.anyby default return an empty string if requested var not found ...
    (comp.lang.javascript)
  • Re: [PHP] Image Generation
    ... the text, font, colour, maximum frame size (ie the width and height it ... var $xoffset, $yoffset, $margin; ... a string or array of strings. ... a float or an array of floats - which size to display the related text at. ...
    (php.general)