Thread overview
final keyword?
Jan 02, 2008
Jason House
Jan 04, 2008
Walter Bright
Jan 04, 2008
Jason House
January 02, 2008
Reviewing online docs, I see mention of final in a few places I don't expect it.  Am I misunderstanding the current design?

http://www.digitalmars.com/d/declaration.html lists final as a storage class option.  I believe variable declarations can no longer be declared final.

http://www.digitalmars.com/d/function.html lists "in" as "final const scope".
January 04, 2008
Jason House wrote:
> Reviewing online docs, I see mention of final in a few places I don't
> expect it.  Am I misunderstanding the current design?
> 
> http://www.digitalmars.com/d/declaration.html lists final as a
> storage class option.  I believe variable declarations can no longer
> be declared final.

But functions can be.

> http://www.digitalmars.com/d/function.html lists "in" as "final const
> scope".

I'll fix, thanks.
January 04, 2008
Walter Bright Wrote:

> Jason House wrote:
> > Reviewing online docs, I see mention of final in a few places I don't expect it.  Am I misunderstanding the current design?
> > 
> > http://www.digitalmars.com/d/declaration.html lists final as a storage class option.  I believe variable declarations can no longer be declared final.
> 
> But functions can be.


I don't believe the online docs discuss this subtlety anywhere.  The declarations page doesn't even discuss the meaning of the final keyword.