Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Using Tcl8.5, what is the common practice to transfer named variables to a proc/method?

Something that will be similar to defining the class members when instantiating a class object [incr Tcl].

Something like this:

# Passing 3 parameters: "hello", "how" and "doing".
procName -hello world -how you -doing today
# We can easily add or remove any parameters to/from any location

Edit #1:
Same example as above, but more similar to python:

procName hello=world how=you doing=today
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.