February 2012
Intermediate to advanced
1184 pages
37h 17m
English
newCLASSNAMELISTnewCLASSNAME
There is no built-in new function.
It is merely an ordinary constructor method (that is, a user-defined
subroutine) that is defined or inherited by the
CLASSNAME class (that is, package) to let you
construct objects of type CLASSNAME. Many
constructors are named “new”, but only by convention, just to trick C++
programmers into thinking they know what’s going on. Always read the
documentation of the class in question so you know how to call its
constructors; for example, the constructor that creates a list box in
the Tk widget set is just called Listbox. See Chapter 12.
Read now
Unlock full access