www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Shouldn't body be deprecated meanwhile?

reply berni44 <dlang d-ecke.de> writes:
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
Dec 21 2019
next sibling parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
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. -Steve
Dec 21 2019
parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
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
Dec 22 2019
parent berni44 <dlang d-ecke.de> writes:
On Sunday, 22 December 2019 at 18:36:17 UTC, Steven Schveighoffer 
wrote:
 If you know how to do that, I think it would be accepted.
No, sorry. I don't know how to do that. (I'm mainly familiar with Phobos.)
Dec 22 2019
prev sibling parent Mathias Lang <pro.mathias.lang gmail.com> writes:
On Saturday, 21 December 2019 at 17:45:41 UTC, 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
Thanks for the reminder, I think we all forgot about it :) https://github.com/dlang/dmd/pull/10693
Dec 22 2019