what's the difference between ref and inout in D2?

Trass3r un at known.com
Fri Mar 12 14:06:45 PST 2010

> So a better question (I don't know the answer) is: what's the purpose of  
> "in" if now function arguments can be const?
Yeah that's true.

> Is this program correct? It compiles and runs, printing 0 two times.
Yeah it behaves as expected cause out parameters are initialized with  
their init as you said.

> This shows why built-in tuples are good.
What do tuples have to do with that?

More information about the Digitalmars-d-learn mailing list