constructor arguments vs. object variables
Posted to
tcl
by mr_calvin at Tue Jul 13 19:27:57 GMT 2021
view raw
constructor {instanceVar} {
namespace
upvar [
namespace
current] instanceVar my(instanceVar)
set
my(instanceVar)
$instanceVar
}
Recent Posts
tcl by oldlaptop
51 mins ago
tcl by oldlaptop
16 hours ago
tcl by iobates
16 hours ago
tcl by iobates
2 days ago
tcl by oldlaptop
2 days ago
tcl by hardkorebob
2 days ago
tcl by hardkorebob
2 days ago
tcl by hardkorebob
4 days ago
tcl by hardkorebob
4 days ago
tcl by iobates
6 days ago
Submit
New paste
Documentation
From Jabber