Structs by ref in D2

bearophile bearophileHUGS at lycos.com
Fri Aug 21 14:30:14 PDT 2009


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


More information about the Digitalmars-d-learn mailing list