"body" keyword is unnecessary
Basile B.
b2.temp at gmx.com
Sun Nov 19 12:54:37 UTC 2017
On Saturday, 18 November 2017 at 19:22:25 UTC, Meta wrote:
> On Saturday, 18 November 2017 at 16:21:30 UTC, Eljay wrote:
>> On Monday, 28 March 2011 at 18:59:03 UTC, Walter Bright wrote:
>>> On 3/27/2011 10:35 PM, Jonathan M Davis wrote:
>>>> I'll be _very_ excited to have both the destructor issues
>>>> and the const issues
>>>> sorted out. They are some of the more annoying quality of
>>>> implementation
>>>> issues at the moment.
>>>
>>> Yes, I agree those are the top priority at the moment, now
>>> that we have the 64 bit compiler online and the worst of the
>>> optlink issues resolved.
>>
>> NECRO ALERT...
>>
>> But I just saw that
>> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md was
>> addressed with https://github.com/dlang/dmd/pull/6855 .
>>
>> I, for one, will miss 'body' the keyword. Now I'll have to
>> update all my toy code.
>>
>> (Just kidding, I don't mind updating my toy code. At least it
>> isn't a codebase the size of Photoshop!)
>
> Don't worry, you've got a few years yet. Currently `body`is not
> even deprecated; it's become a conditional keyword, or you can
> use `do` in its place.
Yeah, "no worries" but for example a few weeks ago a bug report
has drawn my attention:
https://issues.dlang.org/show_bug.cgi?id=17925
After testing some code with i've indeed observed that the
transition period for `do` had started...
"since when ?" i've wondered.
Good question, it's even not in the changelog:
https://www.google.fr/search?domains=dlang.org&dcr=0&biw=1280&bih=635&tbs=qdr%3Ay&ei=H34RWpKDPIzTgAatnqK4DA&q=body+do+site%3Adlang.org%2Fchangelog&oq=body+do+site%3Adlang.org%2Fchangelog&gs_l=psy-ab.3...4014.4428.0.4779.3.3.0.0.0.0.67.190.3.3.0....0...1.1.64.psy-ab..0.0.0....0.AOIgJDEhh_g
So maybe it's wort mentioning something like
"(formerly body, which is still allowed during ....)", because
there's been a communication problem with that deprecation.
More information about the Digitalmars-d
mailing list