OTcl 也就是""Object Tcl"",是麻省理工学院的David Wetherall在Tcl的基础上做了面向对象的封装后所延伸出来的脚本语言。 // Sample code in OTcl Class HelloWorld HelloWorld instproc hello { } { puts "Hello world" } set helloworld [new HelloWorld] //to run $helloworld hello 参考文献 面向对象的编程语言