Article # 198, added by Geoworks, historical record
| first | previous | index | next | last |

@dispatch gives compile time error



Q. If I try a "@dispatch null::null::myEvent;", the compiler gives
   an error. In fact, I cannot convince @dispatch to accept any of
   the alternative objects or messages. Nor will it have anything
   to do with the 'noFree' flag. What's wrong?

A. Currently, GOC accepts the following grammar for @dispatch and
   @dispatchcall:

   @dispatch ;
   @dispatchcall () ;

   If you want to change the recorded destination, call
   MessageSetDestination() first, then do the @dispatch.