Turbo Pascal question [message #86046] |
Mon, 17 June 2013 17:37 |
ELDER
Messages: 3 Registered: May 2013
Karma: 0
|
Junior Member |
|
|
Message-ID: <5902@brl-tgr.ARPA>
Date: Mon, 19-Nov-84 12:12:18 EST
Article-I.D.: brl-tgr.5902
Posted: Mon Nov 19 12:12:18 1984
Date-Received: Wed, 21-Nov-84 05:03:59 EST
Sender: news@brl-tgr.ARPA
Organization: Ballistic Research Lab
Lines: 4
Does anyone know if you can do recursion in Turbo Pascal? Thanks.
-Greg
------
|
|
|
Re: Turbo Pascal question [message #86050 is a reply to message #86046] |
Mon, 17 June 2013 17:37 |
fsbrn
Messages: 12 Registered: May 2013
Karma: 0
|
Junior Member |
|
|
Message-ID: <5907@brl-tgr.ARPA>
Date: Mon, 19-Nov-84 12:37:02 EST
Article-I.D.: brl-tgr.5907
Posted: Mon Nov 19 12:37:02 1984
Date-Received: Wed, 21-Nov-84 05:05:21 EST
Sender: news@brl-tgr.ARPA
Organization: Ballistic Research Lab
Lines: 11
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.
|
|
|
Re: Turbo Pascal question [message #86065 is a reply to message #86046] |
Mon, 17 June 2013 17:37 |
cem
Messages: 155 Registered: May 2013
Karma: 0
|
Senior Member |
|
|
Message-ID: <451@intelca.UUCP>
Date: Fri, 16-Nov-84 19:01:20 EST
Article-I.D.: intelca.451
Posted: Fri Nov 16 19:01:20 1984
Date-Received: Fri, 23-Nov-84 02:36:16 EST
References: <5902@brl-tgr.ARPA>
Organization: Intel, Santa Clara, Ca.
Lines: 10
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. :-}
|
|
|
Re: Turbo Pascal question [message #86077 is a reply to message #86046] |
Mon, 17 June 2013 17:37 |
hall
Messages: 49 Registered: May 2013
Karma: 0
|
Member |
|
|
Message-ID: <478@ittral.UUCP>
Date: Fri, 23-Nov-84 20:29:00 EST
Article-I.D.: ittral.478
Posted: Fri Nov 23 20:29:00 1984
Date-Received: Sat, 24-Nov-84 05:58:25 EST
References: brl-tgr.5902
Lines: 26
[]
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
|
|
|