On Saturday, November 21, 2015 15:14:31 Johan Engelen via Digitalmars-d-learn 
wrote:
> On http://dlang.org/function.html, I read that "final" is a valid
> attribute/storage class for function parameters:
>
> InOutX:
>      auto
>      TypeCtor
>      final  <-- ??
>      in
>      lazy
>      out
>      ref
>      scope
>
> This looks like a documentation error, but perhaps it's not. I
> hope someone can explain what it means, or confirm that it is an
> error. If it really is a valid storage class for parameters,
> please help document it here:
> http://dlang.org/function.html#parameters
>
> Thanks!

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.

The bug for tracking all known grammar issues is here:

https://issues.dlang.org/show_bug.cgi?id=10233

And Brian Schott (who's trying to get all of the grammar issues fixed) has
his own version here

https://github.com/Hackerpilot/DGrammar

- Jonathan M Davis

Reply via email to