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 emiliano
10 days ago
tcl by dandyn
10 days ago
tcl by schelte
17 days ago
tcl by bohagan
20 days ago
tcl by emiliano
21 days ago
tcl by emiliano
21 days ago
tcl by kevin_walzer
23 days ago
tcl by meissa
23 days ago
tcl by meissa
23 days ago
tcl by meissa
23 days ago
Submit
New paste
Documentation
From Jabber