Re: procedural vs object oriented



Ludovic Brenta wrote:

A static procedure call has no uncertainty: when you read the program
source, you know exactly which subprogram is called, even in the
presence of overloading.

If Shape.Type = Triangle Then
Draw_Triangle(Shape);
ElsIf Shape.Type = Rectangle Then
Draw_Rectangle(Shape);
Else
Put("Damn, I never thought we will have more shape types.");
End If;

In what way is this better or more certain than a dispatching call based on the tag?


--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
.