hide a variable in a namespace
Posted to
tcl
by kbk at Wed Jan 01 16:58:11 GMT 2020
view raw
namespace
eval jobManager {
namespace
export display
variable
count 0
proc
display {} {
variable
count
return
[
incr
count]
}
}
puts
[jobManager::count]
puts
[jobManager::count]
Recent Posts
tcl by Stu
6 days ago
tcl by rhobart
19 days ago
tcl by stevel
23 days ago
tcl by dandyn
31 days ago
tcl by dandyn
31 days ago
tcl by dandyn
31 days ago
tcl by dandyn
33 days ago
tcl by dandyn
33 days ago
tcl by emiliano
44 days ago
tcl by dandyn
44 days ago
Submit
New paste
Documentation
From Jabber