* Helmut Giese <
[email protected]>
| | →
https://x.com/i/grok/share/Wo4XKUycnscf3WNTbpMoms93f
| that's really cool: a complete, detailed analysis which even I
| understood. Many thanks for this link
The text created by the AI contains a subtle error: it makes a
difference between "variable foo" at class level and "my variable foo"
at method level as the former being a "class-wide" variable (shared
across instances, 'static' in C++, 'common' in itcl) and the latter "instance-specific" ones (specific to one object):
[Complex situations, p2]
...
["my variable classVar" in method without previous "variable classVar" at class level]
...
In this case, classVar becomes an instance-specific variable, not a
class-wide one, which could lead to unexpected behavior if the
intent was to share classVar across instances.
As far as I understand it, this is not the case. Also the code you
posted cleary shows that classVar is *not* shared between instances
(each object has it's own value).
Maybe someone with more knowlegde on this can share some insight?
R'
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)