Re: Static arrays passed by value..?

2010-08-08 Thread simendsjo
On 08.08.2010 01:52, BCS wrote: What that is saying is that if the type of the function arg is a static array... not if the value passed to the function is a static array... Yes, it would help to read the spec a bit closer :)

Static arrays passed by value..?

2010-08-07 Thread simendsjo
The spec for array says: Static arrays are value types. Unlike in C and D version 1, static arrays are passed to functions by value. Static arrays can also be returned by functions. I don't get the static arrays are passed to functions by value part. Here I am passing in a static and

Re: Static arrays passed by value..?

2010-08-07 Thread Lionello Lunesu
On 2010-08-07 9:26, simendsjo wrote: The spec for array says: Static arrays are value types. Unlike in C and D version 1, static arrays are passed to functions by value. Static arrays can also be returned by functions. I don't get the static arrays are passed to functions by value part. Here I

Re: Static arrays passed by value..?

2010-08-07 Thread Simen kjaeraas
simendsjo simen.end...@pandavre.com wrote: The spec for array says: Static arrays are value types. Unlike in C and D version 1, static arrays are passed to functions by value. Static arrays can also be returned by functions. I don't get the static arrays are passed to functions by value

Re: Static arrays passed by value..?

2010-08-07 Thread BCS
Hello simendsjo, The spec for array says: Static arrays are value types. Unlike in C and D version 1, static arrays are passed to functions by value. Static arrays can also be returned by functions. I don't get the static arrays are passed to functions by value part. Here I am passing in a