For example:
$ echo $KSH_VERSION
Version JMP 93u+ 2012-02-29
$ typeset -a arr=( ( 1 2 ) ( 3 4 5 ) )
$ typeset -n ref=arr[1] <== no errors reported so I assume this is
supported
$ typeset -p ref
typeset -n ref=arr <== ???
$ echo ${ref[0][@]} <== but actually `ref' is not the reference to `arr'
either
$ echo ${ref[1][@]}
$ echo ${ref[@]}
1 3
$ echo ${!ref[@]}
0 1
$
With multi-dimension arrays it's very natural to define a function to
operate on the array row by row as one often does in other languages like C.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users