ns2 에 사용중인 OTcl의 최신버전을 Tcl의 확장패키지로 분리 &

h2h1995의 이미지

OTcl은 본래 MIT에서 개발된 Tcl의 오브젝트 지향 확장 패키지입니다.

OTcl은 ns2 네트웍 시뮬레이터에서 채용되어 사용중인 패키지입니다.

MIT의 OTcl 오리지널 배포 싸이트는

ftp://ftp.tns.lcs.mit.edu/pub/otcl/README.html

이며, 현재는 유지보수를 SourceForge의 싸이트에서 행하고 있습니다.

http://sourceforge.net/projects/otcl-tclcl/

이번엔 올린 패키지는 OTcl 최신버전 1.9를 Tcl 8.4.11 과 함께 컴파일한후

Tcl에서 독단적으로 OTcl을 사용하여 OO 프로그래밍을 할수 있도록

확장패키지로 분리하였습니다. Tcl 8.4 이상에서는 돌아갈겁니다.

참고로 Win32 용입니다.

다른 플랫폼으로 컴파일하고자 하시는 분은 소스를 받아 컴파일 하세요.

이젠 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
File attachments: 
첨부파일 크기
Package icon otcl-1.9.src.zip232.38 KB
Package icon OTcl1.9.zip25.62 KB
Forums: 
h2h1995의 이미지

http://tcltk.co.kr/moniwiki/wiki.php/Tcl%C0%C7%20%BF%C0%BA%EA%C1%A7%C6%AE%20%C1%F6%C7%E2%20%C8%AE%C0%E5%20%C6%D0%C5%B0%C1%F6%20OTcl

OTcl 강좌를 작성해 보았습니다.
잘못된 내용이 있으면 수정해 주시고, 추가하고 싶으신 분은.. 추가해 주세요..

----------------
http://tcltk.co.kr

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.