[fpc-pascal] how to pass a procedure address and execute it?
waldo kitty
wkitty42 at windstream.net
Thu Jan 23 23:42:28 CET 2014
On 1/23/2014 2:32 PM, Jim Leonard wrote:
> On 1/23/2014 1:27 PM, Marco van de Voort wrote:
>> Define a procedure type that matches both procedures, in your example
>>
>> Type
>> TProc = procedure ; // which is predefined in system afaik.
>>
>> and change whichproc to that type. The VAR is not necessary in this case.
>
> Alternately, switch to an OOP model, whose entire model (inheritance) addresses
> this sort of thing.
interesting... i do use customapplication for the main program so i can take
advantage of getoption and friends... i wonder... hummm...
--
NOTE: No off-list assistance is given without prior approval.
Please keep mailing list traffic on the list unless
private contact is specifically requested and granted.
More information about the fpc-pascal
mailing list