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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to