Extended Type Design.
Andrei Alexandrescu (See Website For Email)
SeeWebsiteForEmail at erdani.org
Fri Mar 16 14:07:13 PDT 2007
Walter Bright wrote:
> kris wrote:
>> BTW, you've also mentioned changing "inout" to "ref" instead? That
>> would probably break more code than a renaming of const; I know both
>> Tango and Mango use inout quite a bit, but I'm happy to change those
>> as necessary. Other people likely feel the same way.
>
> Changing inout to ref would be a very long process in several stages:
>
> 1) Adding ref as a keyword and documenting its usage
> 2) Recommending changing usage from 'inout' to 'ref'
> 3) Removing 'inout' from the documentation
> 4) Producing a warning on 'inout' with -w switch
> 5) Deprecating 'inout'
> 6) Removing 'inout' as keyword
>
> Also, 'inout' is easily greppable, and very likely is unique enough that
> using nothing more than a global search/replace will work.
I will notice that that process didn't start for the infamous magic
variable "length". It's still in
http://digitalmars.com/d/expression.html :o(.
Andrei
More information about the Digitalmars-d
mailing list