Shouldn't body be deprecated meanwhile?

Steven Schveighoffer schveiguy at gmail.com
Sun Dec 22 18:36:17 UTC 2019


On 12/21/19 3:28 PM, Steven Schveighoffer wrote:
> On 12/21/19 12:45 PM, berni44 wrote:
>> I just stumbled over [1] and asked myself, what's the current state of 
>> DIP 1003? Does anyone know?
>>
>> [1] https://issues.dlang.org/show_bug.cgi?id=19325
> 
> I mean, given that this works:
> 
> void main()
> {
>    int body = 5;
> }
> 
> I don't know that we need to even deprecate it.

Taking a second look at the DIP, it seems that the deprecation is due to 
the objection of any contextual keywords, which apparently body now is.

So the deprecation should happen. It was supposed to happen when the DIP 
was implemented.

If you know how to do that, I think it would be accepted.

The deprecation period can be really long, though, as there is probably 
a lot of code out there that needs updating.

-Steve


More information about the Digitalmars-d mailing list