Passing by Value vs. Reference
Derek Parnell
derek at psych.ward
Mon May 1 10:06:09 PDT 2006
On Tue, 02 May 2006 01:54:54 +1000, Craig Black <cblack at ara.com> wrote:
> Are structs in D passed by reference by default? I know if I specify
> "out"
> or "inout" they would have to be, but what about just regular parameters
> without qualification?
>
As far as I can see when using the "in" type of argument, structs are
copied to the stack before calling the function and popped off when the
function returns.
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d
mailing list