What's happening with the `in` storage class

Walter Bright newshound2 at digitalmars.com
Sat Jun 9 02:13:00 UTC 2018


On 6/8/2018 6:02 PM, Mike Franklin wrote:
> Should it be deprecated (not necessarily removed) to guide users towards a more 
> consistent and idiomatic usage of the language? Also, if there are fewer usages, 
> it will make it much easier to redefine `in` to something useful in the future.


'in' is supposed to mean 'scope const'. But it was never enforced, meaning that 
suddenly enforcing it is just going to break code left and right.

So I recommend incrementally replacing it as you see it with 'scope const' and 
fixing anything that breaks.


More information about the Digitalmars-d mailing list