In TCL's Itcl package there is a way to define a class and static members for that class using common keyword. But I have never seen that common variable was declared as private or public? Can we do that? If no, then why?
Asked
Active
Viewed 371 times
1 Answers
3
The document for itcl stated that the keywords { private, public, protected } can be placed in front of { method, proc, variable or common } so the answer is yes, we can do that.
Reference: http://www.tcl.tk/man/itcl3.1/class.n.html

Hai Vu
- 37,849
- 11
- 66
- 93