[Xotcl] Static member functions?

Michael A. Cleverly michael at cleverly.com
Wed Apr 16 08:30:26 CEST 2003


(Disclaimer: I'm quite new to XOTcl & I have read the tutorial a couple
times but maybe not enough.  :-)

What's the XOTcl idiom/way for a static member variable (what snit, the
only other OO Tcl package/extension I've used, would call a "type
variable")?

Contrived example: if I had a "Chapters" class, I'd like to have a single
variable, accessible by all instances of the class, that kept track of the
"current" chapter.  Suggestions?

Michael




More information about the Xotcl mailing list