www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19325] New: The 'body' keyword is still not deprecated

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

          Issue ID: 19325
           Summary: The 'body' keyword is still not deprecated
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

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.

--
Oct 21 2018