1

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?

AstroCB
  • 12,337
  • 20
  • 57
  • 73
Narek
  • 38,779
  • 79
  • 233
  • 389

1 Answers1

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