On 02/25/2016 04:47 AM, sigod wrote:

>      void bar(ref int[] arr)
>
> Code wouldn't compile if you try to pass static array as `ref` argument.

To qualify further, static arrays cannot be passed as slice references because although there is an automatic slicing of static arrays, such slices are rvalues and rvalues cannot be bound to 'ref' parameters:

>      Error: function f436.bar (ref int[] arr) is not callable using
> argument types (int[3])

Ali

Reply via email to