홈페이지: https://sourceforge.net/projects/otcl-tclcl/files/OTcl/
MIT Object Tcl의 줄임말인 OTcl은 객체 지향 프로그래밍을 위한 Tcl/Tk의 확장입니다.
OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for object-oriented programming. TclCL (Tcl with classes) is a Tcl/C++ interface used by Mash, vic, vat, rtp_play, ns, and nam. It provides a layer of C++ glue over OTcl.
package require OTcl
Class testclass
#testclass inst0
#testclass inst1
testclass instproc method0 { } {
puts "Hello~~"
}
testclass instproc method0 { } {
puts "Hello~~"
}
testclass instproc init { } {
puts "init !!"
}
testclass instproc destroy { } {
puts "destroy !!"
}
#inst0 method0
#inst1 method0
set a [new testclass]
puts "Instance: $a"
delete $a
'확장 패키지 (Extension Package)' 카테고리의 다른 글
mkWidgets 1.3 (0) | 2024.10.11 |
---|---|
mkZiplib 1.0 (0) | 2024.10.11 |
Snit 1.0 (0) | 2024.10.11 |
Winico 0.6 (0) | 2024.10.11 |
Mysund 1.00 (0) | 2024.10.11 |