incr-tcl
How to get a reference on the Itcl class member variable?
Say I have the following structure: package require Itcl itcl::class开发者_StackOverflow中文版 AAA {[详细]
2023-03-25 05:56 分类:问答Why I can't set the common variable a property to be private or public?
In TCL\'s Itcl package the开发者_如何学Gore 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 pub[详细]
2023-03-16 16:31 分类:问答TCL How to have as a class member an array (Itcl)
I want to have an array as a private class member. I use Itcl package. For lists and other 开发者_开发知识库simple variables I was writing:[详细]
2023-03-16 16:17 分类:问答Is there a way to make [incr Tcl] classes friends?
Is there a way to obtain a friendship between classes in incr Tcl? Consider the code below. package require Itcl[详细]
2023-02-06 05:22 分类:问答Can't hide constructor at [incr Tcl]
Consider the code below开发者_如何学Go. package require Itcl ::itcl::class A \\ { private { constructor { } { } { puts \"==== at A::constructor\" }[详细]
2023-02-06 03:52 分类:问答Static function inheritance in [incr Tcl]
Inheritance in incr Tcl doesn\'t work as expected. Consider the code below. package require Itcl ::itcl::class Base \\[详细]
2023-02-05 17:28 分类:问答Access Itcl Class Scope in Tcl Thread
First of all, this is a follow up to a previous question of mine. I would like to use threading in Tcl but in collaboration with Itcl.[详细]
2023-01-28 12:56 分类:问答Tcl: Setting a private variable of an owned instance within a class
Suppose the following code declarations: itcl::class ObjectA { private variable m_ownedObject private variable m_someVariable[详细]
2022-12-19 09:12 分类:问答ITCL - How to access associative array member inside a class?
How to access associative array member of a class inside the class itself? Itcl is modeled after C++, and in C++ we would write:[详细]
2022-12-09 15:49 分类:问答