delegate to shared member function

Benjamin Thaut code at benjamin-thaut.de
Sun Apr 24 01:17:42 PDT 2011


I'm currently trying to pass a delegate to a shared member function to a 
function. The compiler tells me that the type I'm passing is
(void delegate(const const(char[]) str) shared)

When I try to use this as type for the function argument, it does not 
accept it. I tried various combinations but couldn't find one that does 
work.

So what is the correct syntax for a delegate to a shared member function?
-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-learn mailing list