Tcl provides several commands which create commands and contexts within which scripts can be evaluated:
generator | cmd? | #args | invocation | destructor | rename? |
---|---|---|---|---|---|
proc | yes | any | by name | yes | |
apply | no | any | by reference | implicit | no |
interp create | yes | any | interp eval | $interp destroy | yes |
interp alias | yes | any | by name | no | |
thread create | no | any | thread send | no | |
namespace ensemble | yes | any | by name | namespace delete | yes |
class create | yes | any | by name | $class destroy | no |
$class create | yes | any | by name | $obj destroy | yes |
coroutine | yes | 1 | by name | return | yes |
key:
generator | what generates an instance of this form? |
cmd? | does this form construct a command? |
#args | how many args does this form take? |
invocation | how is this form invoked? |
destructor | what explicit destructor disposes of this form? |
rename? | does rename destroy this form? |