Getting a method's address

In article <>,
Alf P. Steinbach <> wrote:

>You can get the address of a method using the address-of operator "@".

Doh! I had tried almost every possibility to get the address of the procedure,
but I didn't try:


That solved my problem.

>However, when calling it, the procedure prototype needs an extra
>parameter (pointer to the object, the "self" pseudo-parameter), which
>you must supply in the call.

I was aware that the self pointer was passed.. my problem was that
I couldn't get the address of the method.  

>Note:  if what you want is simply parameterizing some procedure with
>different operation depending on the type of an object, you should
>instead make this operation a virtual method and simply call the
>virtual method for that object.

Actually, it is a method that is part of a finite state machine.  It is
less cpu intensive if I override the actual method called instead of using a
case statement or jump table to figure out which method needs to be called.
The finite state machine exists within the object, and not between two
separate objects, so virtual methods would do me no good.

--TCA of NewOrder