Posted to tcl by Rothgar at Fri Dec 14 14:46:11 GMT 2007view raw
- class T1 {
- set host "localhost";
- set user "admin";
- set pass "password";
- # Functions
- proc T1 { this host {port 5000} } {
- # Constructor
- putlog "Constructing";
- set ($this,host) $host;
- set ($this,port) $port;
- }
- proc ~T1 {this} {
- }
- }
- set server [new T1 "127.0.0.1"];
- putlog "TEST: $T1::($server,pass)";
- pass doesn't get set correctly?