I have never passed args in tcl before.
I would like to be able to do that.
proc tpsTestProc {a {b 7} {c -2} } {
expr $a / $b + $c
}
I am using the example from a tcl book. It is passing args 6 and 3.
Shows the answer should be 0.
I am trying to use the testing tool in cloverleaf.
I get this error
0:TEST] Tcl error:
msgId = message0
proc = ‘tpsTestProc’
args = ‘6 3’
result = ‘wrong # args: should be “tpsTestProc a ?b? ?c?”‘
errorInfo: ‘
wrong # args: should be “tpsTestProc a ?b? ?c?”
while executing
“tpsTestProc {MSGID message0} {CONTEXT sms_ib_data} {ARGS {6 3}} {MODE run} {VERSION 3.0}”‘
What is the proper way to enter the args in the Args box?
I just put
6 3
Is there more that needs to be added to the code?
The Guthrie Clinic
Sayre, PA