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 mookie
14 hours ago
tcl by schelte
5 days ago
tcl by mookie
13 days ago
tcl by schelte
17 days ago
tcl by schelte
18 days ago
tcl by mookie
22 days ago
tcl by mookie
24 days ago
tcl by mookie
28 days ago
tcl by mookie
28 days ago
tcl by Army
30 days ago
Submit
New paste
Documentation
From Jabber