Bug 19325 – The 'body' keyword is still not deprecated

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-22T00:01:23Z
Last change time
2021-03-04T09:31:09Z
Keywords
pull
Assigned to
No Owner
Creator
Andrej Mitrovic

Comments

Comment #0 by andrej.mitrovich — 2018-10-22T00:01:23Z
As per DIP 1003 (https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1003.md), the below should have emitted a deprecation: ----- void main ( ) { } void test () in { } body { } ----- The deprecation is not yet listed on dlang.org as well: https://dlang.org/deprecate.html -- Minor issue since we can already use 'body' thank to how the DIP was implemented.
Comment #1 by dlang-bot — 2019-12-23T00:26:29Z
@Geod24 created dlang/dmd pull request #10693 "Fix issue 19325 - Deprecate body keyword" fixing this issue: - Fix issue 19325 - Deprecate body keyword The 'do' keyword has been supported since 2.075.0, so we can safely deprecate 'body' now. https://github.com/dlang/dmd/pull/10693
Comment #2 by dlang-bot — 2019-12-23T00:26:29Z
@Geod24 updated dlang/dmd pull request #10693 "Fix issue 19325 - Deprecate body keyword" fixing this issue: - Fix issue 19325 - Deprecate body keyword The 'do' keyword has been supported since 2.075.0, so we can safely deprecate 'body' now. https://github.com/dlang/dmd/pull/10693
Comment #3 by dlang-bot — 2019-12-23T13:27:59Z
dlang/dmd pull request #10693 "Fix issue 19325 - Deprecate body keyword" was merged into master: - 3093244d3a4ea668fd86b3780933a4cdbaba80e8 by Geod24: Fix issue 19325 - Deprecate body keyword The 'do' keyword has been supported since 2.075.0, so we can safely deprecate 'body' now. https://github.com/dlang/dmd/pull/10693
Comment #4 by pro.mathias.lang — 2020-02-07T01:38:01Z
Reverted: It broke a lot of code out there, and some people are still stuck before `do` was introduced. I guess we'll have to wait a bit more.
Comment #5 by pro.mathias.lang — 2021-03-04T09:31:09Z