Manifest constants - why not 'alias' ?
Robert Fraser
fraserofthenight at gmail.com
Fri Dec 7 18:06:22 PST 2007
Bill Baxter wrote:
> Agreed. I really don't see why you wouldn't use final. It seems
> perfect. Walter just declared there would be no more final, so it's
> suddenly a keyword without much to do. It's previous meaning as a head
> const storage class puts it in the right syntax category already. So
> what's wrong with it?
>
> --bb
class X
{
final
{
void foo() { } // Method cannot be overriden in a subclass
int x = 5; // Manifest constant
}
}
More information about the Digitalmars-d
mailing list