Extended Type Design.
torhu
fake at address.dude
Fri Mar 16 09:13:07 PDT 2007
mike wrote:
> Why not "const final" or "final const"?
>
> (a) .. final
> (b) .. const
> (c) .. const final / final const
>
> "super" is for calling constructors and that should be the only use for
> this keyword.
Wouldn't a "final const" or "const final" pointer be like using const
for both the pointer and the value in C?
// D
int x = 5;
const final int* p = &x;
// C
int x = 5;
const int * const p = &x;
More information about the Digitalmars-d
mailing list