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 kevin_walzer
4 hours ago
tcl by meissa
10 hours ago
tcl by meissa
10 hours ago
tcl by meissa
11 hours ago
tcl by meissa
11 hours ago
tcl by miessa
11 hours ago
tcl by sevarat
5 days ago
tcl by mookie
21 days ago
tcl by apn
22 days ago
tcl by schelte
24 days ago
Submit
New paste
Documentation
From Jabber