home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18397 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!news.oc.com!convex!convex!darwin.sura.net!news.udel.edu!chopin.udel.edu!kurisuto
  3. From: kurisuto@chopin.udel.edu (Sean J. Crist)
  4. Subject: THINK Pascal: calling a unit which uses you
  5. Message-ID: <BxoJ5n.2G7@news.udel.edu>
  6. Sender: usenet@news.udel.edu
  7. Nntp-Posting-Host: chopin.udel.edu
  8. Organization: University of Delaware
  9. Date: Sat, 14 Nov 1992 00:10:34 GMT
  10. Lines: 15
  11.  
  12. OK, here's my problem.  I've got a THINK Pascal 4.0 project which has many
  13. units, including two which I'll call A and B.  A uses B, but I want B to
  14. call a procedure in A.
  15.  
  16. The reason I want to do this is to write code which calls itself recursively.
  17. The code is very long, and I can't see any way to restructure the
  18. code so that the recursive call happens within one unit. 
  19.  
  20. I've read the documentation, but I don't see any way to do this.  Labeling
  21. routines as 'external' or 'forward' doesn't seem to work, although it may
  22. be that I just haven't done it properly.  There must be a way.  Does
  23. anyone have any ideas?
  24.  
  25. --Kurisuto
  26.  
  27.