"body" keyword is unnecessary

Tony tonytdominguez at aol.com
Sun Nov 19 08:05:38 UTC 2017


On Sunday, 19 November 2017 at 07:21:32 UTC, Seb wrote:
> On Sunday, 19 November 2017 at 04:57:11 UTC, Tony wrote:
>> On Saturday, 18 November 2017 at 19:22:25 UTC, Meta wrote:
>>> On Saturday, 18 November 2017 at 16:21:30 UTC, Eljay wrote:
>>>> [...]
>>>
>>> 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.
>>
>> It may be deprecated, but someone completely removed it from 
>> the documentation on contracts. That could cause some 
>> confusion for people using older versions of the compiler.
>>
>> https://dlang.org/spec/contracts.html
>
> That's what the docarchives are for: 
> https://docarchives.dlang.io/v2.074.0/spec/contracts.html

OK, but how would someone who is looking at:

https://docarchives.dlang.io/v2.074.0/spec/contracts.html

know what version of the compiler it applies to and where to find 
older documentation for their version of the compiler?


More information about the Digitalmars-d mailing list