Scope variables.

Agustin agustin.l.alvarez at hotmail.com
Mon Oct 7 16:23:41 PDT 2013


On Monday, 7 October 2013 at 23:18:13 UTC, Justin Whear wrote:
> On Tue, 08 Oct 2013 01:01:43 +0200, Agustin wrote:
>> Doesn't ref means i'm passing the parameter by reference 
>> instead of by
>> value?. Isn't "a" being copied when calling func?, or does D 
>> always pass
>> by reference when using classes and structures?
>
> Class instances are by reference already, structs are by value.
>  For
> further comparison, please see the table here:
> http://dlang.org/struct.html

Thank you!.


More information about the Digitalmars-d-learn mailing list