Reply To: Passing multiple args to a tcl proc in one variable

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Passing multiple args to a tcl proc in one variable Reply To: Passing multiple args to a tcl proc in one variable

#57030
Scott Folley
Participant

Yeah Troy, that is my favorite as well.  It is also nice to keep in mind that you can use optional arguments to a TCL proc like this:

proc SendEmailMessage { mailargs {debug “0”} } {

    if {$debug} {

           echo “I am in debug mode”

}

That way you can send all of your information in via the keyed list variable and add an additional variable to indicate whether you are in debug mode..

Just my $.02

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10