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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Ada vs C++ vs Java Date: 1999/02/08 Message-ID: <36BF0814.99B30A27@pwfl.com>#1/1 X-Deja-AN: 441863691 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <77ledn$eu7$1@remarQ.com> <77pnqc$cgi$1@newnews.global.net.uk> <8p64spq5lo5.fsf@Eng.Sun.COM> <77t3ld$nou$1@nnrp1.dejanews.com> <79ce4s$lfq$1@nnrp1.dejanews.com> <79chc7$ko6@drn.newsguy.com> <79dodb$rhf$1@nnrp1.dejanews.com> <79fm3e$ffs$1@nnrp1.dejanews.com> <79fnce$iv8@drn.newsguy.c <36beecef.70d8ed5e@pwfl.com> <1999Feb8.094418.1@eisner> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-02-08T00:00:00+00:00 List-Id: Larry Kilgallen wrote: > > How about a single sort interface with one parameter being the algorithm ? > Seems to me that when I was in school, the CS profs thought it was "A Bad Thing" to pass parameters which controlled where the entry into a subroutine would take place. Did they call that "Control Coupling"? or was it something else? I don't know why you would have to have a single name "Sort" for all possible sorting algorithms. These things have been around long enough that most folks would recognize the algorithm name and know why they would want to choose one over another. One might also want to build sort operations for files or some other constructs and the name overloading might not be desirable in this case either. Or one could specify a single array sort interface and leave the algorithm "implementation defined"? Most often, the algorithm used is not that critical as long as it gets the array sorted is some reasonable span of time. This doesn't sit too well with me though - I'd prefer to specify it through the procedure name. MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 Ph: 561.796.8997 Fx: 561.796.4669 ***To reply, remove "bogon" from the domain name.*** "Government is not reason. It is not eloquence. It is a force. Like fire, a dangerous servant and a fearful master." -- George Washington