How to deprecate member function from outside?

Dru Dru at notreal.com
Sat Dec 22 18:55:47 UTC 2018


Hi,
I would like to use "deprecated" on a member function, but do it 
from a separate file

this works:
///
void func() {}

deprecated {
   void func();
}
////

this doesn't work:
////
class C{
   void func() {}
}

deprecated {
   void C.func();
}
////

I get: Error: semicolon expected, not .

Thanks


More information about the Digitalmars-d-learn mailing list