An example of a procedure with procedure with default arguments is
proc add {a {b 2000} } { return [expr $a+$b] } puts [add 22 10] puts [add 22]
Result:
32 2022
Jan 4, 2022 | tcl | 0 comments
An example of a procedure with procedure with default arguments is
proc add {a {b 2000} } { return [expr $a+$b] } puts [add 22 10] puts [add 22]
Result:
32 2022
Subscribe now to keep reading and get access to the full archive.
Recent Comments