radon@phoenix.Princeton.EDU (Radon Research) (03/15/88)
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.