Re: procedural vs object oriented
- From: Maciej Sobczak <no.spam@xxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 13:07:35 +0200
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/
.
- Follow-Ups:
- Re: procedural vs object oriented
- From: Pascal Obry
- Re: procedural vs object oriented
- From: Ludovic Brenta
- Re: procedural vs object oriented
- References:
- procedural vs object oriented
- From: Ananth the Boss
- Re: procedural vs object oriented
- From: bh
- Re: procedural vs object oriented
- From: Ludovic Brenta
- Re: procedural vs object oriented
- From: Dmitry A. Kazakov
- Re: procedural vs object oriented
- From: Ludovic Brenta
- procedural vs object oriented
- Prev by Date: Re: procedural vs object oriented
- Next by Date: Re: procedural vs object oriented
- Previous by thread: Re: procedural vs object oriented
- Next by thread: Re: procedural vs object oriented
- Index(es):