Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!bg11+ From: bg11+@andrew.cmu.edu (Brian E. Gallew) Newsgroups: comp.lang.pascal Subject: Re: Pointers to procedures Message-ID: Date: 9 Apr 91 17:19:22 GMT References: <26505@adm.brl.mil> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 16 In-Reply-To: <26505@adm.brl.mil> I don't know much about Procedure Pointers in PASCAL, but I can see one way in which this becomes truly elegant. Define an array of Procedure Pointers. This, in conjuction with a numerical or key-letter input reduces to a mapping function (for key-letters) and a single call ProcPtrVar[Choice]; While I have never done this in PASCAL, I have done exactly this in C. -Brian You drop the bomb -more- It goes off... -more- ------------------------------------------------------------------------- I am *NOT* as think as you dumb I am!! | This space for rent (241-6939) -------------------------------------------------------------------------