Tcl:无效的命令名称错误 [英] Tcl: Invalid command name error

查看:43
本文介绍了Tcl:无效的命令名称错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 tcl 代码中有这样一行:

Application/BitTorrent 设置 seqNo_ $opt(seqNo)

..我有一个 OTcl 类名Application/BitTorrent",我收到这个错误...

<前>无效的命令名称应用程序/BitTorrent"执行时应用程序/BitTorrent 设置 seqNo_ $opt(seqNo)"

谁能告诉我错误可能在哪里?

谢谢!

解决方案

我讨厌指出显而易见的问题,但错误正是消息所说的:在抛出错误时没有命令名为应用程序/BitTorrent".

这可能意味着以下三种情况之一:命令名称拼写错误,命令尚未创建或已被销毁,或者它存在但在当前上下文中不可见(例如,它存在于其他一些尚未导入的命名空间、包或文件).

I have a line in my tcl code like this:

Application/BitTorrent set seqNo_ $opt(seqNo)

..I have an OTcl class name "Application/BitTorrent", I get this ERROR...

invalid command name "Application/BitTorrent"
    while executing
"Application/BitTorrent set seqNo_ $opt(seqNo)"

can anybody tell me where the error might be?

thanks!

解决方案

I hate to be the one to point out the obvious, but the error is exactly what the message says: at the time the error is thrown there is no command named "Application/BitTorrent".

This likely means one of three things: either the command name is misspelled, the command hasn't been created or has already been destroyed, or it exists but isn't visible in the current context (for example, it exists in some other namespace or package or file that hasn't been imported).

这篇关于Tcl:无效的命令名称错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆