Say I defined proc f1 proc f2 and proc f3. Now I want to create a TCL interpreter, send the code proc f1 proc f2 and proc f3 to this interpreter and restrict all commands other than f1, f2 and f3 inside this interpreter. How can i do this?
EDIT:
If another f1, f2, and f3 command is called in the interpreter, I created an error message and execute the code received in the interpreter (suppose that this other code, which is received in the same interpreter, after searching for the code with f1, f2 and f3 procs) should be stopped.
Narek source
share