Two functions with different args. Taking address of the one

Виталий Фадеев vital.fadeev at gmail.com
Thu Mar 11 12:26:07 UTC 2021


Have:
     void process( ref MouseKeyEvent event )
     {
        ...
     }

     void process( ref MouseMoveEvent event )
     {
        ...
     }

Want:
     _processMouseKey  = &process; // <-- not works
     _processMouseMove = &process; // <-- not works

What is correct way to get address of function with specific 
argument ?



More information about the Digitalmars-d-learn mailing list