Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tekgen!penguin.uss.tek.com!decomyn From: decomyn@penguin.uss.tek.com Newsgroups: comp.sys.ibm.pc.misc Subject: Re: Turbo Pascal vs. C Message-ID: <6616@tekgen.BV.TEK.COM> Date: 25 Sep 90 19:57:50 GMT References: <1990Sep20.164153.28641@portia.Stanford.EDU> <5953@plains.NoDak.edu> <410@saxony.pa.reuter.COM> Sender: news@tekgen.BV.TEK.COM Reply-To: decomyn@penguin.uss.tek.com (Vergil William de Comyn) Distribution: comp Organization: Tektronix, Inc., Beaverton, OR. Lines: 14 In article <410@saxony.pa.reuter.COM> dgil@pa.reuter.COM (Dave Gillett) writes: >It's true that Turbo Pascal doesn't have built-in support for function >pointers. This is not true, at least not in Turbo V5.5. I am currently writing a program that allows data to be sorted in different orders for viewing on the screen. Rather than use a CASE statement whenever new data is read in, I have assigned a PROCEDURE (or FUNCTION -- I am away from the code right now, and can't remember for sure) variable, and whenever the sorting method changes, I just change the address in the variable to point to the new routine. No fuss, no muss. :-) Brendt Hess decomyn@penguin.uss.tek.com