In our previous episode, waldo kitty said:
> 
> i'm trying to use one routine (centralControl) to process data from two 
> different routines (inputThis and outputThat)... the one routine 
> (centralControl) needs to call one of two other routines

whichproc is typeless and thus roughly equal to a pointer to a
byte (though semantically different, and add another pointer indirection for
the VAR). So the compiler doesn't know what to do with it.

> how? :(

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

Reply via email to