ref arguments

Jeremie Pelletier jeremiep at gmail.com
Mon Sep 21 18:35:16 PDT 2009


#ponce wrote:
>> 'ref' and 'inout' are identical. 'ref' was introduced after D1 was
>> finalized for future expansion - 'inout' return values don't make much
>> sense.
> 
> Thanks. 
> I now have to get rid of inout.
> 
> Is there a deprecation mechanism in D2 to get rid of keywords like "bit", "inout" or "immutable" ? It would break compatibility but no more than default thread local storage.

immutable is not deprecated, in fact its going to replace invariant.

I dont think we should deprecate keywords like inout, since its already 
widely used in IDL so it only makes sense to keep it in D. bit is 
declared in object.d so that one can be deprecated, I myself removed it 
from my runtime.


More information about the Digitalmars-d-learn mailing list