Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!udel!princeton!phoenix!radon From: radon@phoenix.Princeton.EDU (Radon Research) Newsgroups: comp.sys.ibm.pc Subject: Turbo Pascal Questions Message-ID: <2062@phoenix.Princeton.EDU> Date: 14 Mar 88 18:53:52 GMT Organization: Princeton University, NJ Lines: 23 Keywords: 3.0 AND 4.0 questions! Try your luck. I have 2 questions for all you Turbo programmers. The first concerns Turbo 3.0 and its implementation of CASE statements. I have a program with a large case statement (some 70+ different cases to match). I want it to be FAST in operation. How exactly does the compiler implement this construction? Does it have a lookup table (which would make speed loss neglible for larger numbers of cases to consider), or does it do some kind of cascaded comparisons? Right now, because I was unsure, I guessed I'd wind up with 50 cases to consider and nested 7 case statements inside another so that 2 cases were needed to get to any block. Probably a fool's economy. Question #2: In Turbo 4.0, is there anyway to dump the graphics screen to a printer? Does (would) this depend on the graphics screen driver type? If you think you have an informed answer to either of these burning questions, reply via email to: amlovell@phoenix.princeton.edu or radon@phoenix.princeton.edu Thanks.