passing arrays to functions in tcl. Only upvar?

后端 未结 3 805
萌比男神i
萌比男神i 2021-01-03 03:27

As far as I understand, in tcl if you want to pass a named array to a function, you have to access the upper scope of the caller via the upvar command within th

3条回答
  •  难免孤独
    2021-01-03 04:16

    There are other ways, like converting it into a list first (via array get and array set).

提交回复
热议问题