Bug 10514 – Constructor declaration grammar is incorrect

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-30T15:37:00Z
Last change time
2014-02-23T22:09:20Z
Keywords
pull, spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2013-06-30T15:37:38Z
As demonstrated in object.di, the correct grammar for a constructor declaration is this: constructor: 'this' parameters (functionBody | ';') ; A function body is not required.
Comment #1 by k.hara.pg — 2014-02-13T00:34:15Z
Comment #2 by github-bugzilla — 2014-02-13T09:39:10Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/42a412344c5ce006cba243e8e98ed9da2ce0c5e5 fix Issue 10514 - Constructor declaration grammar is incorrect Same issue is in ConstructorTemplate, Destructor, Postblit, Allocator, Deallocator, StaticConstructor, StaticDestructor, SharedStaticConstructor, and SharedStaticDestructor. https://github.com/D-Programming-Language/dlang.org/commit/0ee5eefb9c88d6e6b38c08abb6c06885b0a4b83f Merge pull request #500 from 9rnsr/fix10514 Issue 10514 - Constructor declaration grammar is incorrect
Comment #3 by github-bugzilla — 2014-02-23T01:10:49Z
Commit pushed to 2.065 at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/8950f90d2364668abf533f35eed985b390acbce6 Merge pull request #500 from 9rnsr/fix10514 Issue 10514 - Constructor declaration grammar is incorrect
Comment #4 by github-bugzilla — 2014-02-23T22:09:20Z