Scope variables.

Justin Whear justin at economicmodeling.com
Mon Oct 7 16:18:13 PDT 2013


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


More information about the Digitalmars-d-learn mailing list