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

Steven Schveighoffer schveiguy at yahoo.com
Fri Mar 12 12:47:21 PST 2010

On Fri, 12 Mar 2010 15:39:43 -0500, Trass3r <un at known.com> wrote:

> IIRC it was the same in D1, has it changed? If no, what should be used?

inout is now completely different from ref.  It has been used to implement  
However, the current incarnation is broken, eventually it will work.

Use ref wherever you would normally use inout in D1.


More information about the Digitalmars-d-learn mailing list