No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] Static member functions?
From: Michael A. Cleverly <michael_at_cleverly.com>
Date: Wed, 16 Apr 2003 00:30:26 -0600 (MDT)
(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
Date: Wed, 16 Apr 2003 00:30:26 -0600 (MDT)
(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