Structs by ref in D2

Daniel Keep daniel.keep.lists at gmail.com
Sat Aug 22 01:08:16 PDT 2009


bearophile wrote:
> Daniel Keep:
>> In my own code, I usually record my intent by using "inout" for
>> variables I intend to modify and "ref" for ones which I don't.
>> Always seemed reasonable to me.
> 
> for the compiler they mean the same thing, but inout is being deprecated.
> 
> Bye,
> bearophile

I realise this.  My point is that the two keywords pretty nicely sum up
a difference in intent.


More information about the Digitalmars-d-learn mailing list