Hijacking
Julio César Carrascal Urquijo
jcesar at phreaker.net
Tue Aug 7 10:36:45 PDT 2007
Chris Nicholson-Sauls wrote:
> I don't think we really need a non-override keyword, and I wouldn't
want
> 'final' to be given that effect either ('final override' should be a
> valid attribute), or any other existing attributes... so our options are:
>
> #1 - Add some sort of "plain" specifier, or a way to un-set a 'foo:'
> attribute. Maybe '!foo:' or similar.
>
> #2 - Make a point of using 'override { ... }' instead.
>
> ....I think I prefer #2.
>
> -- Chris Nicholson-Sauls
#3 - Use default:
override:
void foo() {}
void bar() {}
default:
void baz() {}
But then again, maybe in this case we should just use override {} or
reorder methods.
More information about the Digitalmars-d
mailing list