"final" as function parameter attribute?

Johan Engelen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 22 13:59:13 PST 2015


On Sunday, 22 November 2015 at 00:21:29 UTC, Jonathan M Davis 
wrote:
>
> Neither auto nor final is valid on a function parameter, so 
> either the grammar is wrong, or InOutX is not used for function 
> parameters. But looking at that page, I'd have to spend a fair 
> bit of time working through it to figure out what it's actually 
> saying.

Start from "Parameters:" and instantiate subitems until you reach 
InOutX :-)
InOutX is definitely (and only) used for function parameters.

> The bug for tracking all known grammar issues is here:
>
> https://issues.dlang.org/show_bug.cgi?id=10233

Great, thanks!

> And Brian Schott (who's trying to get all of the grammar issues 
> fixed) has his own version here
>
> https://github.com/Hackerpilot/DGrammar

Thanks for the link. It is also wrong in his grammar: 
parameterAttribute contains both "final" and "auto".



More information about the Digitalmars-d-learn mailing list