Liste des Groupes | Revenir à cl ada |
I think the parallel block is more useful for general tasking. The advantageTasking is not about scheduling. It is about program logic expressed in a sequential form. It is about software decomposition. Parallel constructs simply do not do that.
of using parallel structures is that they look very similar to sequential
structures, and one lets the system do the scheduling (rather than trying to
figure out an organization manually).
One of the advantages of the model I'm thinking about is that it separatesTo me it is exactly *one* construct: inheritance. You should be able to inherit from an abstract protected interface at any point of type hierarchy in order to add mutual exclusion:
concerns such as parallel execution, mutual exclusion, inheritance,
organization (privacy, type grouping), and so on into separate (mostly)
non-overlapping constructs.
Ada started this process by having tagged typesI see modules and types as unrelated things.
a separate construct from packages;
but you can also construct many structures that are quite hard inConstructs yes, they must go. It must be all inheritance. The concepts must stay.
traditional "one construct" OOP. I think that ought to be done for all
constructs, and thus the special task and protected constructs ought to go.
We already know that protected types cause problems with privacy ofThe problems are of syntactic nature, IMO.
implementation and with inheritance. Tasks have similar issues (admittedly
less encountered), so splitting them into a set of constructs would fit the
model.
Les messages affichés proviennent d'usenet.