Re: How to deprecate member function from outside?

2018-12-22 Thread Dru via Digitalmars-d-learn
You're right it did define two functions same signature and no compile error, heh

Re: How to deprecate member function from outside?

2018-12-22 Thread Dru via Digitalmars-d-learn
Thanks for the reply I will try to explain what I mean: The first example shows that it is possible to deprecate a function separately from it's definition. The second example tries the same for a member function but it fails with a compile error. I want to know if it is possible to "fix"

How to deprecate member function from outside?

2018-12-22 Thread Dru via Digitalmars-d-learn
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 . Thank