Fix issue 17408: scope and in are considered redundant#10168
Fix issue 17408: scope and in are considered redundant#10168Geod24 wants to merge 2 commits intodlang:masterfrom
Conversation
|
Thanks for your pull request, @Geod24! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10168" |
|
Fixing the behavior to - what? |
This pull request make it so that someone writing: For the future (nothing that this PR do):
|
|
In c# it is a read only reference. |
| private StorageClass appendStorageClass(StorageClass storageClass, StorageClass stc) | ||
| { | ||
| if ((storageClass & stc) || (storageClass & AST.STC.in_ && stc & (AST.STC.const_ | AST.STC.scope_)) || (stc & AST.STC.in_ && storageClass & (AST.STC.const_ | AST.STC.scope_))) | ||
| static bool isIn (StorageClass stc) |
There was a problem hiding this comment.
I think this should be a public utility function accompanying the STC declaration at
Line 196 in 467bd75
I offered the following suggestion at https://forum.dlang.org/post/aqkrrclvdgqeiusccgyt@forum.dlang.org
Choose "v2.xxx" to be whatever works to achieve consensus. |
|
@JinShil : I will be strongly opposed to any modification that requires double modification of the source code. Likewise, I'm strongly opposed to any modification that rely on you ignoring a message. It is just user-unfriendly. |
No double modification is required. Users can keep
It doesn't rely on users ignoring the message. It simply offers it as an option. If users don't wish to ignore the message, they can modify their source code. Also, an important realization about my suggestion is that whatever problems one might see with it are temporary. The entire issue, and its problems will be non-existent after 2.xxx is released which could be as short as 1 year. If my suggestion would have been approved at the time I made it, we wouldn't even be having this discussion right now. |
I wouldn't be opposed to removing the option to ignore the message, if it would help get this issue resolved. The deprecation message could then read.
Effectively, what my suggestion is doing is discouraging the use of |
|
So why not simply remove |
Yes, that's the fundamental question I was hoping to get an answer to in my forum post: "What is the long-term plan for So, you tell me. What do you want |
|
Another option is to make |
|
Should we close this given |
|
I think so. @Geod24 any objections? |
|
The issue is still present, and could be correctly fixed, but I guess we can live with this. |
This fixes the issue at hand, although I am not really sure what we should do with
in.As it stands should it just be deprecated or should we add
-transition=into make it work again ?