From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e8023133274ae02c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!koehntopp.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!cern.ch!news From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: procedural vs object oriented Date: Thu, 27 Apr 2006 13:07:35 +0200 Organization: CERN - European Laboratory for Particle Physics Message-ID: References: <1146039364.130635.181590@v46g2000cwv.googlegroups.com> <871wvjh9te.fsf@ludovic-brenta.org> <1xs8jrwjj0dx2$.1ksjkyqyhimw9$.dlg@40tude.net> <1146134530.434869.47230@t31g2000cwb.googlegroups.com> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sunnews.cern.ch 1146136055 22642 (None) 137.138.37.241 X-Complaints-To: news@sunnews.cern.ch User-Agent: Mozilla Thunderbird 1.0.8-1.4.1.SL (X11/20060424) X-Accept-Language: en-us, en In-Reply-To: <1146134530.434869.47230@t31g2000cwb.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:3947 Date: 2006-04-27T13:07:35+02:00 List-Id: 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/