cem@intelca.UUCP (Chuck McManis) (11/17/84)
Yes you can do recursion in Turbo, you must however tell the compiler you will be doing so with the $A- switch. The compiler defaults, under CP/M, to no recursion to speed up the processing speed. --Chuck -- - - - D I S C L A I M E R - - - {ihnp4,fortune}!dual\ All opinions expressed herein are my {qantel,idi}-> !intelca!cem own and not those of my employer, my {ucbvax,hao}!hplabs/ friends, or my avocado plant. :-}
CPT.GREG.ELDER <elder@Wpafb-Info1.ARPA> (11/19/84)
Does anyone know if you can do recursion in Turbo Pascal? Thanks. -Greg ------
"Ferd Brundick (VLD/LTTB)" <fsbrn@BRL-VOC.ARPA> (11/19/84)
Haah, Yes, you can write recursive functions in Turbo Pascal. You must set a compiler flag first, and the default setting for the flag is NO recursion. dsw, fferd Fred S. Brundick aka Pascal Postman USABRL, APG, MD. <info-pascal-request@brl-voc>
hall@ittral.UUCP (Doug Hall) (11/24/84)
[] I've seen this question pop up several times, and I've heard it asked in conversations where I work as well. I can only surmise that if you don't know whether or not Turbo Pascal supports recursion it's because you have a pirated copy of it and don't have a manual to find the right compiler directive which turns on recursion. I find it hard to believe that people who don't have Turbo would think up this question out of the clear blue. Come on guys, it's only $50!!! It's not like it's an overpriced buggy piece of software that just begs to be pirated; Borland has a really nice editor/ compiler system here. It's well worth the 50 bucks they ask for it, so why not just support these guys and see what they come up with next! I've heard rumors of other compilers in the works, all for the same low price. If I've falsly accused anyone, I apologize. I get pretty bent out of shape when I see a company charge megabucks for crap they call 'software', but I get just as torqued when I see people screwing up a good thing for everybody else. If you can afford a system that runs Turbo, you can afford to buy a legit copy. BTW, in answer to the question, "Does Turbo Pascal support recursion?" the answer is yes. Look on page 216 of the manual to find out how. (CP/M only) Doug Hall ittvax!ittral!hall