[Issue 7726] 'virtual' keyword please
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 19 05:08:09 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7726
--- Comment #3 from Piotr Szturmaj <pszturmaj at tlen.pl> 2012-03-19 05:08:26 PDT ---
You can tag individual members with public/private and final. final: and final
{ } are just for convenience.
You can also try something like this:
{
void virtualMethod() {}
private:
int privateMember;
public final:
void finalMethod() { } // public
}
I guess you are opting for virtual: keyword to just disable existing final:
specifier. There are other possible solutions without adding a new keyword:
- Use default: to restore public and virtual.
- Use negation, like !final: to disable specifiers that differ from public and
virtual.
But I'm ok with current approach.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list