several questions
Derek Parnell
derek at psych.ward
Sat Feb 16 21:23:22 PST 2008
On Sun, 17 Feb 2008 05:09:44 +0100, torhu wrote:
> Derek Parnell wrote:
> > This is in contrast with structs, static (fixed-length) arrays, and
> basic
>> data types. In these cases, the function does get a copy of the parameter's
>> data.
>
> No, static arrays are 'reference' types. Meaning they are passed as
> just the address of the first element. You have to wrap them in a
> struct to get copy semantics for them.
Thanks for the correction. I was sure that at one stage static arrays were
passed by value. This will simplify some of my code now.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d-learn
mailing list