Sujet : Re: My hang-up about OOP (snit)
De : luc (at) *nospam* sep.invalid (Luc)
Groupes : comp.lang.tclDate : 27. Jun 2024, 22:08:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240627180832.3c8fc106@lud1.home>
References : 1 2 3 4
On Thu, 27 Jun 2024 02:42:35 +0000, Robert Heller wrote:
The above is wrong in several ways. Widgets *never* use $self to reference
the widget's path. ($self would only be used to reference methods.)
Secondly, components are "installed" [exception: *typecomponents* are
set]. So the above should be:
Thanks!
But I already regret snitting the toplevel.
I mean, is there any benefit in snitting everything or should I rather
just snit the things I know there will be many of?
And apart from very personal preferences, is there any really good
reason for someone to prefer snit over TclOO?
From where I stand (about 2 inches tall so not a great view), it *seems*
that snit is easier. But it also seems that TclOO has better documentation.
I'm also wondering, is this "delegate" business really good for me?
Wouldn't it be better for me to get used to a more traditional (inheritance)
approach to OOP? Would TclOO give me the more tradiional approach?
Does it also handle widgets? Can I make megawigets with it?
-- Luc>