Bug 10235 – Grammar does not contain a rule for function declarations

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-01T20:56:32Z
Last change time
2021-07-28T01:10:23Z
Keywords
pull, spec
Assigned to
No Owner
Creator
briancschott
Blocks
10233
See also
https://issues.dlang.org/show_bug.cgi?id=4720

Comments

Comment #0 by briancschott — 2013-06-01T20:56:32Z
The official grammar does not contain a rule detailing what a function declaration looks like. The functions page on the website only details what a function body looks like. It's possible to piece the information together with information on the Declarations page, but this is not very obvious.
Comment #1 by k.hara.pg — 2014-09-23T13:45:06Z
Comment #2 by github-bugzilla — 2014-09-24T12:03:47Z
Commit pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/29a53eb72657510a1899aeeb6b3dc7efdfbcb618 fix Issue 10235 - Grammar does not contain a rule for function declarations Move FuncDeclaration and related non terminal symbols into function.dd Conflicts: declaration.dd grammar.dd
Comment #3 by dfj1esp02 — 2016-11-24T10:06:22Z
Still has no rule for declaration without body, e.g. extern function.
Comment #4 by b2.temp — 2021-07-28T01:10:23Z