Board index » delphi » Need help with recursive functions in Turbo Pascal 7.0
Michael Rupp
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Michael Rupp
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Need help with recursive functions in Turbo Pascal 7.0I have encountered a problem while trying to set up a series of |
Derek T. Asa
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0QuoteMichael Rupp <mrup5...@stu.oru.edu> writes: A recursive function is one that calls itself. Two different functions calling each other is sometimes called a circular reference. They are NOT the same thing. You could probably use the FORWARD command to get your program to compile, but as a general rule, circular references are considered a poor programming practice. ---------------------------------------------------------------- Derek Asari eq...@cleveland.freenet.edu |
Igor Colovi
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0You can use FORWARD parameter after procedure declaration. Igor Colovic, Belgrade, Yugoslavia, Europe ci...@EUnet.yu Michael Rupp <mrup5...@stu.oru.edu> wrote in article Quote> I have encountered a problem while trying to set up a series of |
Perique des Palotte
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0QuoteMichael Rupp wrote: -- ...Si hoc tibi placet mitte nobis XX dollaria... |
Bob Scho
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0QuoteDerek T. Asari wrote: applications where it is perfectly legal and sensible to use. One Bob Schor |
Ing. Franz Glase
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0Instead of using Forward the procedure can be declared Franz Glaser |
Greg Shubert ET
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0QuoteMichael Rupp wrote: Function Curse1 (a, b: double): double; forward; Then down in the code section of your file, repeat the function header Function Curse1 (a, b: double): double; Posted and Mailed. |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0In article <34F442D9.D7D5E...@vms.cis.pitt.edu>, Quote>Derek T. Asari wrote: recursion is a very bad thing where recursive procedure calls itself twice, like the infamous recursive procedure for Fibonacci numbers. Quote> One expression parser: expression = term {+|- term} Osmo |
Frank Peel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0QuoteDerek T. Asari wrote in message Quote
the first again before returning. And it's not necessarily bad practice. FP |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need help with recursive functions in Turbo Pascal 7.0In article <34F49FCB.6...@fc.hp.com>, Quote>Michael Rupp wrote: allow including the parameters and return type on the definition of the Body. TP fortunately fixes this. Quote>begin |
1. I NEED TURBO PASCAL 7.0 HELP FILE (TURBO.TPH)
2. I need Turbo Pascal 7.0 help.
3. Help!! Need Turbo Pascal 7.0
4. Help needed:Turbo Pascal 7.0
5. ****Need Help in Turbo Pascal 7.0****
6. Need help with Turbo Pascal 7.0 graphics.....
7. I would like to know the difference between Borland Pascal 7.0 and Turbo Pascal 7.0
8. Turbo Pascal 7.0 vs Borland Pascal 7.0