| Thread overview | |||||
|---|---|---|---|---|---|
|
January 02, 2008 final keyword? | ||||
|---|---|---|---|---|
| ||||
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 Re: final keyword? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jason House | 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 Re: final keyword? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply