From Newsgroup: comp.lang.tcl
On Tue, 27 Jan 2026 22:56:32 GMT
abu <
[email protected]d> wrote:
I've read various articles and comments on how to implement class-methods
and class-variables in Tcloo, but I've never figured out how to implement
a class-constructor (similar to Snit's typeconstructor)
to initialize these class-variables.
Please, can you give me some simple examples ?
There is a simple example in the documentation of classvariable(n):
https://www.tcl-lang.org/man/tcl9.0/TclCmd/classvariable.html
The initialise/initialize command itself is documented in oo::define(n)
https://www.tcl-lang.org/man/tcl9.0/TclCmd/define.html#M12
Regards
--
Emiliano
--- Synchronet 3.21b-Linux NewsLink 1.2