ref arguments

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Sep 21 08:51:28 PDT 2009


On Mon, Sep 21, 2009 at 11:43 AM, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:

> in means that it's a reference that cannot be changed.  In D1, it means you
> cannot change the value, but if the value contains a reference to something
> else (like an array), you can change what it points to.

> in: Use this for pass by reference for a value that you won't change

No, sorry, this is wrong. In D1, 'in' is the default (pass by value)
and does nothing.


More information about the Digitalmars-d-learn mailing list