Re: procedural vs object oriented



Dmitry A. Kazakov a écrit :
Well, no:

if Read (File) then
Foo;
else
Bar;
end if;

The uncertainty of a dispatching call is one of the context, exactly as in
the example above. Provided, that there is nothing uncertain in how
dispatching works or what potential targets do.

Of course, you can assume that every dispatching call is equivalent to a case statement over all possibly redefined primitives. That works well for one level.

But if you consider that each called primitive may in turn redispatch internally, you end up with a combinatorial explosion. In theory, yes, the analysis can be performed. In practice, no.
--
---------------------------------------------------------
J-P. Rosen (rosen@xxxxxxxxx)
Visit Adalog's web site at http://www.adalog.fr
.



Relevant Pages

  • Re: procedural vs object oriented
    ... The uncertainty of a dispatching call is one of the context, ... dispatching works or what potential targets do. ... case statement over all possibly redefined primitives. ... But if you consider that each called primitive may in turn redispatch ...
    (comp.lang.ada)
  • Re: implementing roles in OOP......
    ... > differently based on some context. ... but in this context Composite seems a misnomer - can I call it ... But yes dispatching is the encapsulation of this decision (and ... but I want a 'execution' of a network to be completely decoupled ...
    (comp.object)
  • Re: procedural vs object oriented
    ... but what uncertainty of dynamic dispatching is ... Or, maybe, "certification" is the context of? ...
    (comp.lang.ada)
  • Re: The Open-Closed-from-a-certain-angle Principle
    ... could probably be done by extending the dispatching mechanism. ... the object's context. ... The idea now would be to extend this and to also allow dispatching on ... most other OO languages) already take a very simple caller context into ...
    (comp.lang.ruby)
  • Re: Flattening lists
    ... flatten generic iterables or only lists). ... this context, since I would say 99.9% of times one wants to treat them ... as atomic objects, so no need to special case. ... Dispatching ...
    (comp.lang.python)