English 中文(简体)
TCL:获得物体的类别名称?
原标题:TCL: get the class name of an object?
  • 时间:2012-05-15 10:25:06
  •  标签:
  • tcl
  • incr-tcl

如果物体存在,如何获得该物体的类别名称或检查?

最佳回答

e. 使用信息学。

objName info class

另见。 http://www.ohchr.org。

itcl::is object objName
问题回答

暂无回答




相关问题
How to create data structure in Tcl?

I am translating some lisp code to Tcl and wonder if there is anything like lisp s defstruct in Tcl for creating data structures? If nothing is built into Tcl, what extension packages to Tcl would ...

(Tcl/Expect) clear screen after exit

I want to clear the screen (on the local machine) after exiting from my (semi) interactive expect script. Can I do that from within the script? Here s what I tried, that failed. #!/usr/bin/expect -f ...

Implementation question in web-development

We are testing a DSL modem s web pages (the HTTP server is running on the modem). We have an automation tool that configures various options on the web pages by sending POSTS of the respective web ...

Linking Tcl/Tk to Python 2.5

I have an existing Python 2.4 and it is working properly with tkinter as I tested it using python import _tkinter import Tkinter Tkinter._test() Now, I have installed ...

热门标签