var b: array[5, int]
type
ArrRef = ref array[5, int]
var c : ArrRef
echo repr(c) # nil
c = addr b # doesn't compile, says type is Array constructor, expected reference
Run Code Online (Sandbox Code Playgroud)
在Nim中,如何将引用传递给数组而不是传递值?到目前为止,请参阅上面的代码.