Given that TclOO is a standard part of Tcl and that since Tcl 9 offers
very comprehensive OO support, ought the Tcllib commands that create global Tcl command be deprecated in favour of new commands (to be added) which create actual objects?
There are quite a few commands provided in Tcllib that create _global_ commands.
Here are just 3 examples (there are others):
::struct::disjointset disjointsetName
Creates a new disjoint set object with an associated global Tcl command
::struct::graph ?graphName? ?=|:=|as|deserialize source?
The command creates a new graph object with an associated global Tcl command
::struct::tree ?treeName? ?=|:=|as|deserialize source?
The command creates a new tree object with an associated global Tcl command
Given that TclOO is a standard part of Tcl and that since Tcl 9 offers
very comprehensive OO support, ought the Tcllib commands that create global Tcl command be deprecated in favour of new commands (to be added) which create actual objects?
There are quite a few commands provided in Tcllib that create _global_ commands.--- Synchronet 3.22a-Linux NewsLink 1.2
Here are just 3 examples (there are others):
::struct::disjointset disjointsetName
Creates a new disjoint set object with an associated global Tcl command
::struct::graph ?graphName? ?=|:=|as|deserialize source?
The command creates a new graph object with an associated global Tcl command
::struct::tree ?treeName? ?=|:=|as|deserialize source?
The command creates a new tree object with an associated global Tcl command
Given that TclOO is a standard part of Tcl and that since Tcl 9 offers
very comprehensive OO support, ought the Tcllib commands that create global Tcl command be deprecated in favour of new commands (to be added) which create actual objects?
Mark Summerfield <[email protected]> posted:
There are quite a few commands provided in Tcllib that create _global_ commands.
Here are just 3 examples (there are others):
::struct::disjointset disjointsetName
Creates a new disjoint set object with an associated global Tcl command
::struct::graph ?graphName? ?=|:=|as|deserialize source?
The command creates a new graph object with an associated global Tcl command >>
::struct::tree ?treeName? ?=|:=|as|deserialize source?
The command creates a new tree object with an associated global Tcl command >>
Given that TclOO is a standard part of Tcl and that since Tcl 9 offers
very comprehensive OO support, ought the Tcllib commands that create global >> Tcl command be deprecated in favour of new commands (to be added) which
create actual objects?
Isn't it a false good idea to name those "object" when they are in fact "namespace" ?
Also some of them are nicely imbricated for example : matrix, report, csv. You will
need a huge workforce to achieve this, unless you use AI, a lot of money
and manage licenses of different authors.
You will probably have to create a fork of Tcllib with only a few modules as a start.
Olivier.
They very much fit the "if it walks like a duck, and it quacks like a
duck, then it might very well be a duck" mindset. So calling them
'objects' is not too far from reality.
Rich <[email protected]d> posted:
They very much fit the "if it walks like a duck, and it quacks like
a duck, then it might very well be a duck" mindset. So calling them
'objects' is not too far from reality.
What I had in mind is that naming "namespace" as "object" can lead
one to believe that Mark's idea seems feasible. But beyond this
concept, unless to have an army of gifted programmers, it will need a
lot of work and time to achieve this without breaking how Tcllib was constructed during years.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,142 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 93:09:50 |
| Calls: | 14,704 |
| Calls today: | 2 |
| Files: | 186,497 |
| D/L today: |
2,361 files (783M bytes) |
| Messages: | 2,551,657 |