Poet2.2 Manual | Prototype Object Extension for Tcl |
ThingPool setFile [lindex $::argv 0]
ThingPool slot writable 1
rename exit crash
proc exit {{returnCode 0}} {
ThingPool slot
crash $returnCode
}
ThingPool open
Object construct Employee
Employee mixin Thing
Employee slot name ""
Employee slot dateOfHire ""
Employee slot salary ""
Employee method new {} {
return [$self construct employee@]
}