Forum OpenACS Q&A: Response to Solution to Invalid command Name

Collapse
Posted by mark dalrymple on
that's what I figured. You don't need the square brackets if the command is on its own. what's happening is this:
  1. Tcl reads the line
  2. Tcl scans through the line looking for square brackets
  3. It evaluates the stuff in the square brackets
  4. The result of the evaluation is substituted back in the line
  5. the line of code is then executed.
so in your code, Tcl reads [page_log ...]. Executes page_log, which returns nothing. Then tcl tries to execute that return of nothing.

If you drop the square brackets, it'll work.