如何在TCL中处理[*]命令
Tcl解析器给出错误,如何在TCL中处理[*]命令,tcl,Tcl,Tcl解析器给出错误,无效的命令名* 我想在TCL中处理* [a*]很好,因为它返回(a*)(这是一条注释,但我需要答案的格式) 您只是没有定义名为*的进程: $ tclsh % * foo bar baz invalid command name "*" % proc * {args} {puts [lreverse $args]} % * foo bar baz baz bar foo 你的问题不清楚。你想干什么?
无效的命令名*
我想在TCL中处理
*
[a*]很好,因为它返回(a*)(这是一条注释,但我需要答案的格式)
您只是没有定义名为*
的进程:
$ tclsh
% * foo bar baz
invalid command name "*"
% proc * {args} {puts [lreverse $args]}
% * foo bar baz
baz bar foo
你的问题不清楚。你想干什么?