Pass argument by reference TCL procedure

前端 未结 0 1211
悲哀的现实
悲哀的现实 2020-12-10 17:29

How to pass an argument by reference in the TCL procedure?

Look the following block of code:

proc test{&a} {
  set a 7
}

set b 5
test b
puts $b


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题